I've just included the <stdio.h>.
I did a search for it in VC++ and found the following (in stdio.h):
/* Declare _iob[] array */
#ifndef _STDIO_DEFINED
_CRTIMP extern FILE _iob[];
#endif /* _STDIO_DEFINED */
later I encountered:
#define stdin (&_iob[0])
#define stdout (&_iob[1])
#define stderr (&_iob[2])
_iob is a predefined internal array of pointers to any active Input/Output blocks. The first three that are allocated when your program starts up are stdin (also known as _iob[0]), stdout (also known as _iob[1]), and stderr (also known as _iob[2]).
So to answer your original question, yes, there are predefined pointers in VC++. _lastiob is another.
Hope that helps! [sig]<p>Pat Gleason<br><a href=mailto:gleason@megsinet.net>gleason@megsinet.net</a><br><a href= > </a><br> [/sig]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.