delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/05/30/22:05:45

From: ZAlain DOT Culos AT bigfoot DOT com (Alain CULOS)
Subject: Re: pipes and spawn
30 May 1998 22:05:45 -0700 :
Message-ID: <35706031.CBEAB30F.cygnus.gnu-win32@bigfoot.com>
References: <5010400023382884000002L042*@MHS>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

This strikes me, but I hope its only a mistake on your part :

Craig Setera wrote:

> int in[1], out[2];
> sprintf(args[1], "%d", in[1]);

Should be :
int i[2]
else how do you want to be able to access in[1] ?
and the call to pipe would corrupt something in memory if you give it a pointer to
one int only.

I hope this is it, if that was obvious, I have no other answer.
Al.


--
ANTI SPAM / ANTI ARROSAGE COMMERCIAL :
Pour me répondre, veuillez enlever le Z de mon adresse.
To answer me, please take out the Z from my address.



-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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