home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / bbs / waffle / 5591 < prev    next >
Encoding:
Internet Message Format  |  1992-12-28  |  898 b 

  1. Path: sparky!uunet!spool.mu.edu!umn.edu!cybrspc!roy
  2. From: roy%cybrspc@cs.umn.edu (Roy M. Silvernail)
  3. Newsgroups: comp.bbs.waffle
  4. Subject: Re: The woes of ^Z
  5. Message-ID: <0PVgwB2w165w@cybrspc.UUCP>
  6. Date: Sun, 27 Dec 92 18:40:32 CST
  7. References: <iNsBwB4w165w@vector0.SAC.CA.US>
  8. Organization: Villa CyberSpace, Minneapolis, MN
  9. Lines: 14
  10.  
  11. jon@vector0.SAC.CA.US  (Dazed N. Confused) writes:
  12.  
  13. >      And I don't think the extra short-circuit required:
  14. >           if ((s=fgets(..)) != EOF && *s != ^Z )
  15. >      is much of a major fix, either.
  16.  
  17. What are you trying to fix, here?  This statement treats ^Z exactly like
  18. EOF (when it appears as the first character read).
  19. --
  20. Roy M. Silvernail --    [my machine ] "Sometimes, you're the windshield....
  21. roy%cybrspc@cs.umn.edu  [my opinions]            sometimes, you're the bug!"
  22. cybrspc!roy@cs.umn.edu  [my $0.0275 ]                      --Mark Knopfler
  23.