• Advertisement

Archived

This topic is now archived and is closed to further replies.

How to get the size of the stdin buffer

This topic is 5972 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I need to get the size of the stdin buffer, (or any FILE buffer), but can''t find any information on how, is it even possiable? Jason Mickela ICQ : 873518 E-Mail: jmickela@pacbell.net ------------------------------ "Evil attacks from all sides but the greatest evil attacks from within." Me ------------------------------

Share this post


Link to post
Share on other sites
Advertisement
IIRC all stdio buffers are BUFSIZ bytes large initially. BUFSIZ is declared in stdio.h
You can change the buffering for a FILE* file with the functions setbuf() and setvbuf()

Share this post


Link to post
Share on other sites

  • Advertisement