Mail Archives: djgpp/1998/10/16/05:37:12
Tim wrote:
> Hi all,
>
> I was wondering if somebody could tell me if there was a standard
> easy way to print text to a standard text printer; is there just a
> "stream" or something? (And if there's not, I was hoping somebody could
> explain to me how else I could do it; All I want to do is to be able to
> print out some really basic text, nothing fancy).
>
> Thanks,
> -Tim
I use this code to do printing from my programs :
n=strlen(szMsg);
for (i=0;i<n;i++)
{ s=biosprint(0,szMsg[i],0);
if ((s&0x39)!=0x10)
{ perror("Error printing.\n";
break;
}
}
--
Dim Zegebart
Moscow, Russia
- Raw text -