Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!rutgers!usc!snorkelwacker!ira.uka.de!smurf!nadia!ananke!kaiser From: kaiser@ananke.stgt.sub.org (Andreas Kaiser) Newsgroups: comp.lang.c Subject: How can I send the null character to the printer? Message-ID: <15.26FC622E@ananke.stgt.sub.org> Date: 22 Sep 90 19:41:00 GMT Organization: Ananke, Stuttgart, FRG Lines: 19 `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@ananke.stgt.sub.org :: Andreas Kaiser :: Fidonet: 2:507/18.7206 (+ 2:509/5.2512) ::::::::::::::::::::