Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!agate!garnet.berkeley.edu!bmyers From: bmyers@garnet.berkeley.edu (Brian Myers) Newsgroups: comp.lang.c Subject: How can I send the null character to the printer? Message-ID: <1990Sep22.012947.21558@agate.berkeley.edu> Date: 22 Sep 90 01:29:47 GMT Sender: usenet@agate.berkeley.edu (USENET Administrator) Organization: University of California, Berkeley Lines: 13 In order to define some downloadable characters for my dot matrix printer, I have to send it a series of character values encoding the bit patterns for the new characters. Some of those encoded values are zero. Of course if I send a string like "\x00\x20\xF3" to stdprn with a function like fputs, nothing gets sent, because the first \x00 is interpreted as the end of the string. Do I need to do a direct bios call (bios_printer)? I can certainly manage that, but I just wondered if I was missing some more obvious solution within the more standard C functions... --------------------------------------------------------------------------- Brian Myers bmyers@garnet.berkeley.edu