yywrap() from lex library
Eric Gisin
egisin at mks.UUCP
Mon Apr 17 10:33:43 AEST 1989
In article <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?
I had to write yywrap for MKS lex.
It tooks several weeks of studying the manuals, banging
my head against the wall, 36 hour days, and Kilos of caffine.
I wouldn't want anyone to go through that Hell so I am
offering the MKS version for general use. Here it is.
/*
* Copyright 1988 Mortice Kern Systems Inc.
* All rights reserved.
*/
/*
* default yywrap that tells yylex to return 0
*/
int
yywrap()
{
return 1;
}
More information about the Comp.lang.c
mailing list