I'm new to C, sorry if my question is dumb.
Where is the source code for IO stream? I want to see how the stream buffer is implemented, I can only see _IO_FILE struct in libc.h, but I don't see any internal buffer in this struct. Can anyone show me how can I locate the implmentation of stream buffer?
Where is the source code for IO stream?
For glibc the code is in libio directory.
In particular, _IO_new_file_fopen function implements fopen.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With