| Store | Cart

Reading from stdin

From: C GIllespie <csgc...@hotmail.com>
Wed, 10 Mar 2004 17:36:32 -0000
> probably both your C- and your python scripts use buffered output. So> the C-program will not print line-by-line but rather en-block after> many bytes of output have accumulated.>> In your C-program, do this (that's most likely your problem):>> printf("%f\n",x); /* print valuable data */> fflush(stdout); /* make sure it's written to stdout */

Yep, that was the problem.

Thanks

Colin

Recent Messages in this Thread
C GIllespie Mar 10, 2004 02:56 pm
Skip Montanaro Mar 10, 2004 03:14 pm
Christian Vogel Mar 10, 2004 03:20 pm
C GIllespie Mar 10, 2004 05:36 pm
P...@draigBrady.com Mar 11, 2004 11:03 am
Messages in this thread

Next post: Win 32 Pipes