Archived

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

griffenjam

How to get the size of the stdin buffer

Recommended Posts

griffenjam    193
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
Dactylos    122
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