Date: Tue, 22 Jun 1999 09:19:37 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Vince McCarthy cc: djgpp AT delorie DOT com Subject: Re: your mail about printers In-Reply-To: <19990621.192737.10271.0.vmccar@juno.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Mon, 21 Jun 1999, Vince McCarthy wrote: > When I set an operation such as proportional printing with a 0x01 > It requires a hex 0x00 to release the proportional printing, I cannot > get the printer to release the proportional printing unless I substitute > an 0xbd value for the 0x00 value. That's because you send the binary zero as part of a string. Strings in C are terminated by a zero, so fprintf simply ignores the zero byte. You need to produce it like this: fprintf (stdprn, "%c", '\0');