Mail Archives: djgpp/1997/06/08/12:43:34
> _iob is the array of FILE structs that Borland's stdio allocates from.
> _iob[0] thru _iob[2] represent stdin, stdout, & stderr.
No, _iob[] is the djgpp 1.12 method for referencing standard FILE*
structures.
> But, DJGPP uses specific FILE structs for those, namely __dj_stdin, ...etc.
> Solution... I dunno. I guess you could do:
> FILE *_iob[3] = { stdin, stdout, stderr };
> but that's kinda yuckers.
This program might crash, because the contents and sizes of the
structures has changed in V2, so _iob[1] is not the right pointer
(pre-compiled libraries won't read the new headers).
- Raw text -