stdio on SYSV vrs BSD

Dan Mick dan at kfw.COM
Wed May 2 14:58:00 AEST 1990


In article <558 at venice.SEDD.TRW.COM> waldorf at venice.sedd.trw.com (Jerry Waldorf) writes:
>
>In the file /usr/include/stdio.h on a BSD box, there is a defined:
>
>#define _IOSTRG	0100
>
>What exactly is this used for? 

It's part of that strange hack to get sprintf and sscanf to work sort of the
same way (f)printf and (f)scanf do.  The routines invent a FILE structure, 
call common routines with that FILE structure's address, and set _IOSTRG in
the flags field to get some special-casing in the common routines.

>       What is the equivalent on SYSV machines?

I hope to God there isn't one.



More information about the Comp.unix.wizards mailing list