[uClibc]RE: stderr problem
dag4004
dag4004 at free.fr
Wed Aug 28 10:53:12 UTC 2002
>>"dag4004" <dag4004 at free.fr> writes:
>> f = freopen("stderr.out", "w", stderr);
>>
>> It seems that when we close the file f, stderr is lost.
>
>Quoting the man page:
>
> The freopen function opens the file whose name is the string
> pointed to by path and associates the stream pointed to by stream
> with it. The original stream (if it exists) is closed.
>
>So after you call `freopen', f and stderr are the same stream; if you
>close f, then you've closed stderr too.
>
>-Miles
Ok, but after closing the file how could i restor stderr for normal purpose
?
More information about the uClibc
mailing list