Obscure code.

Tor Lillqvist tml at hemuli.tik.vtt.fi
Thu Mar 29 06:33:49 AEST 1990


In article <1990Mar28.131215.14795 at ncsuvx.ncsu.edu> rcb at ccpv1.ncsu.edu (Randy Buckland) writes:
>waldorf at venice.SEDD.TRW.COM (jerry waldorf) writes:

>>	_strbuf._flag = _IOREAD | _IOSTRG;

>_doscan is an internal routine of {scanf, fscnaf, sscanf}. 

>for sscanf a fake FILE struct is built to
>allow it to call the same routine.

One more point if you are porting to HP-UX: There is no _IOSTRG flag,
instead you should put _NFILE in _strbuf._file (i.e. an illegal file
descriptor).  Or something like that, disassemble the sscanf code
(with adb) to be sure.
-- 
Tor Lillqvist,
working, but not speaking, for the Technical Research Centre of Finland



More information about the Comp.unix.wizards mailing list