Path: utzoo!attcan!utgpu!watmath!mks!egisin From: egisin@mks.UUCP (Eric Gisin) Newsgroups: comp.lang.c Subject: Re: yywrap() from lex library Summary: this is how I did it Message-ID: <777@mks.UUCP> Date: 17 Apr 89 00:33:43 GMT References: Organization: Mortice Kern Systems, Waterloo, Ont. Lines: 23 In article , lfk@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; }