Path: utzoo!attcan!uunet!zephyr.ens.tek.com!uw-beaver!ubc-cs!alberta!mts.ucs.UAlberta.CA!Al_Dunbar From: userAKDU@mts.ucs.UAlberta.CA (Al Dunbar) Newsgroups: comp.lang.c Subject: Re: How can I send the null character to the printer? Message-ID: <1354@mts.ucs.UAlberta.CA> Date: 22 Sep 90 14:11:52 GMT References: <1990Sep22.012947.21558@agate.berkeley.edu> Organization: MTS Univ of Alberta Lines: 22 In article <1990Sep22.012947.21558@agate.berkeley.edu>, bmyers@garnet.berkeley.edu (Brian Myers) writes: >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 fwrite( buffer, size, count, stream ); -------------------+------------------------------------------- Al Dunbar | Edmonton, Alberta | this space for rent CANADA | -------------------+------------------------------------------- #! r