|
Posted by Vince Morgan on 12/25/07 07:15
"Tim Roberts" <timr@probo.com> wrote in message
news:ag71n3hb9lsf385c5pdf0k4os0s9pcjvfn@4ax.com...
> You are wrong. "printf" writes to stdout. If you run it from a console,
> then stdout is connected to the console, but that's certainly not the only
> option. If you type:
> hw > xxx.txt
> then clearly "printf" is not going to the console.
Clearly, thank you.
> Your suggestion about fread is also off the mark. Any of the stdio
> functions will work.
>>> "Vince Morgan" <vinharAtHereoptusnet.com.au> wrote:
[snip]
>>>According to the manual the file pointer that is returned by "popen()"
can
>>>be used by the following, fgets(), fgetss(), and fwrite() whereas you are
>>>calling "fread()".
[snip]
What suggestion was that? I can't see it in the above. You have another
source?
>
> >You need to capture the output as a string so
> >that it can be output to the server as HTML or whatever. However you
cannot
> >return a string from a C executable.
Ooops, pipes.
>
> Not so. Perhaps you should hold off on replying until you are in more
> familiar territory.
My appologies to Daniel.
I see your ego is much larger than you manners..
Regards,
Vince Morgan
[Back to original message]
|