Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!usc!trwind!venice!waldorf From: waldorf@venice.SEDD.TRW.COM (jerry waldorf) Newsgroups: comp.unix.wizards Subject: Obscure code. Message-ID: <423@venice.SEDD.TRW.COM> Date: 28 Mar 90 00:23:16 GMT Reply-To: waldorf@venice.sedd.trw.com (jerry waldorf) Organization: TRW Systems Engineering & Development Division, Redondo Beach, CA Lines: 24 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.