From: | Colin Wenzel |
Date: | 1 Aug 2000 at 09:20:57 |
Subject: | Re: AMIOPEN: Env variables |
On 01-Aug-00, Aaron Optimizer Digulla wrote:
> On Mon, Jul 31, 2000 at 10:10:01AM -0700, Patrick Roberts wrote:
>>> printf ("data=\"%s\"", data);
>> fflush(stdouot);
> *ARGH* :-) OK, it works now. Now all I have to do is to find out
> why it doesn't work in some more complex cases. Will be back :-)
Buffered streams generally flush only when they hit "\n"
try adding a printf("\n") after, or with '\n' in the format
string: printf("data=\%s\ \n");
Of course, fflush() is the ultimate answer..
Regards
Colin Wenzel. Australia.
EMAIL: colstv@hotkey.net.au
URL: http://www.hotkey.net.au/~colstv/
ICQ: 17608330
AMIGA: 4000T, 68060/50, 150Mb RAM,
OS 3.5, Spectrum Gfx Card.
_________________________________________
Subscribe/Unsubscribe: open-request@amiga.com
Amiga FAQ: http://www.amiga.com/faq.html