Path: utzoo!dptcdc!jarvis.csri.toronto.edu!mailrus!bbn!bbn.com!rsalz From: rsalz@bbn.com (Rich Salz) Newsgroups: comp.lang.c Subject: Re: yywrap() from lex library Message-ID: <1675@papaya.bbn.com> Date: 16 Apr 89 20:01:29 GMT References: Organization: BBN Systems and Technologies Corporation Lines: 11 In lfk@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@uunet.uu.net.