BUFSIZ is declared in stdio.h but I havn't been able to find out exactly how big it makes the buffer when I use it.
I'm just curios.
BUFSIZ is declared in stdio.h but I havn't been able to find out exactly how big it makes the buffer when I use it.
I'm just curios.
Well english isn't my first language, (it's instead a useless language called danish which only 5 milion people speak!!) so if you think my grammar SUCKS (it does by the way) than you're more then welcome to correct me.
Hell I might even learn something
Look in your stdio.h file. In mine, (VC++ 6.0 Pro), it says...
>>>
#if defined(_M_MPPC)
#define BUFSIZ 4096
#else /* defined (_M_MPPC) */
#define BUFSIZ 512
#endif /* defined (_M_MPPC) */
<<<
... I would not rely on that for any random buffer I used, I would always size my own.
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
Code:#include <iostream> #include <cstdio> int main( void ) { std::cout<<BUFSIZ<<std::endl; }
Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah
You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie