Obscure code.
jerry waldorf
waldorf at venice.SEDD.TRW.COM
Wed Mar 28 10:23:16 AEST 1990
I am porting some code from a sun to hp and ran across
this:
static int scanit(str, fmt, args)
register char *str;
char *fmt;
char **args;
{
FILE _strbuf;
_strbuf._flag = _IOREAD | _IOSTRG;
_strbuf._ptr = _strbuf._base = (unsigned char *) str;
_strbuf._cnt = 0;
while(*str++)
_strbuf._cnt++;
_strbuf._bufsiz = _strbuf._cnt;
return(_doscan(&_strbuf, fmt, args));
}
What exactly does this do and where do I find _doscan?
Any hints would be greatly appreciated. I am trying to
make this code portable. Thanks in advance.
More information about the Comp.unix.wizards
mailing list