Subject: RE: how to force pipes into binary mode?
From: [email-masked] (Sergey Okhapkin)

18 Apr 1998 13:57:32 -0700
Message-ID: <01BD6B12.7A145C60.cygnus.gnu-win32@sos>
To: "[email-masked]" <[email-masked]>,
        "'Frank Baumgart'"
	 <[email-masked]>

Frank Baumgart wrote:
> So, how do I force my pipes which have been created with pipe() to work
> in binary mode?
> 

int pdes[2];

if (pipe(pdes) == 0) {
	setmode(pdes[0], O_BINARY);
	setmode(pdes[1], O_BINARY);
}

-- 
Sergey Okhapkin, http://www.lexa.ru/sos
Moscow, Russia

-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".