How can I send the null character to the printer?
Andreas Kaiser
kaiser at ananke.stgt.sub.org
Sun Sep 23 05:41:00 AEST 1990
`t BM> In order to define some downloadable characters for my dot matrix printer,
BM> I have to send it a series of character values encoding the bit patterns
BM> for the new characters. Some of those encoded values are zero. Of course
BM> if I send a string like "\x00\x20\xF3" to stdprn with a function like
BM> fputs, nothing gets sent, because the first \x00 is interpreted as the
BM> end of the string.
Make your own 'fputs', using 'putc'. 'putc' should transmit ANY code (unless you
operate in text mode on a PC running MSDOS :-).
Gruss, Andreas
--
:::::::::::::::::::: Internet: kaiser at ananke.stgt.sub.org
:: Andreas Kaiser :: Fidonet: 2:507/18.7206 (+ 2:509/5.2512)
::::::::::::::::::::
More information about the Comp.lang.c
mailing list