delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/22/02:22:19

Date: Tue, 22 Jun 1999 09:19:37 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Vince McCarthy <vmccar AT juno DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: your mail about printers
In-Reply-To: <19990621.192737.10271.0.vmccar@juno.com>
Message-ID: <Pine.SUN.3.91.990622091851.25569A-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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');

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019