yywrap() from lex library

Rich Salz rsalz at bbn.com
Mon Apr 17 06:01:29 AEST 1989


In <LFK.89Apr16010905 at mbio.med.upenn.edu> lfk at mbio.med.upenn.edu (Lee Kolakowski) writes:
>Does anyone know what yywrap does so that I can write a look-a-like?
As it says in the supplementary documentation (variously called Volume2,
PRM, Programmer's Language Guide, etc.), yywrap() is called by Lex
when input() says it's found EOF (which it does by returning 0!).  yywrap
is supposed to return 0 if there is more input, 1 if there isn't.

The default yywrap is
	yywrap() { return 1; }
-- 
Please send comp.sources.unix-related mail to rsalz at uunet.uu.net.



More information about the Comp.lang.c mailing list