freopen.c

The libc implementation

Author

Martin ‘Solar’ Baute

License

Public Domain

Summary
freopen.cThe libc implementation
Todo’s
This function can change wide orientation of a stream
Special handling for mode changes on std-streams
It is not nice to do this on a stream we just closed.It does not matter with the current implementation of clearerr(), but it might start to matter if someone replaced that implementation.
Setting mbstate

Todo’s

This function can change wide orientation of a stream

Special handling for mode changes on std-streams

It is not nice to do this on a stream we just closed.

It does not matter with the current implementation of clearerr(), but it might start to matter if someone replaced that implementation.

Setting mbstate