home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / programm / 5205 < prev    next >
Encoding:
Internet Message Format  |  1992-11-08  |  1.7 KB

  1. Path: sparky!uunet!pmafire!news.dell.com!swrinde!zaphod.mps.ohio-state.edu!rphroy!caen!batcomputer!rpi!usenet.coe.montana.edu!news.u.washington.edu!uw-beaver!uw-coco!mdisea!mdivax1!van-bc!rwsys!root
  2. From: root@rwsys.uucp (Superuser)
  3. Newsgroups: comp.unix.programmer
  4. Subject: Re: How to handle NULs in lex ...?
  5. Message-ID: <921107612@rwsys.uucp>
  6. Date: 7 Nov 92 16:55:54 GMT
  7. References: <1d6dl4INNr07@diamond.pgh.wec.com>
  8. Organization: RWSYS Exporter BBS system
  9. Lines: 33
  10.  
  11. oscsf@godel.pgh.wec.com (Chuck Fuller) writes:
  12. > I need to be able to make my lex application survive (indeed, point
  13. > out!) the existence of NULs in the input file.  Despite much "R'ing of
  14. > TFM", I am so far unable to get it to do anything other than stop
  15. > immediately.
  16. > Your suggestions are appreciated.
  17. > Thanks.
  18. > - Chuck
  19. > -- 
  20. > Charles S. Fuller 
  21. > Westinghouse Corporate Computer Services
  22. > (W): oscsf@godel.pgh.wec.com                   Internet: fuller@wccs.psc.edu
  23.  
  24. Suggestion:
  25.  
  26. There are differences among lexen for various platforms and I don't know
  27. what yours uses, but you may need to rewrite the input() function. The
  28. stock one probably will not return until there is a non-zero value in 
  29. the input stream, it may even interprete a null as eof.
  30.  
  31.     Yours Truly,
  32.     Randy Wright
  33.  
  34. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  35. root@rwsys.wimsey.bc.ca (Randy Wright)      | Exporter BBS     2400 bps
  36.                 or                          | (604) 581-0518     8N1
  37.     Randy_Wright@Mindlink.bc.ca             | uucp         ogin: uguest
  38.                                             | interactive login: guest
  39. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  40.