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