gabriel rosenkoetter on Fri, 18 Jan 2002 17:10:17 +0100 |
On Fri, Jan 18, 2002 at 10:52:21AM -0500, Philip McGraw wrote: > I don't think the literal char code used in the file system > for marking EOF is even relevant here. On the compilers and > systems I've checked, EOF gets #defined to be (-1) in stdio.h > > This is merely the return code that getchar returns when it > encounters an end of file condition and has nothing to do with > how the file system determines where that end of file is. Fair enough, but we are discussing two slightly different things. ^V^D is the way to match the ASCII code for EOF. EOF (or -1) is the way to match getc(3)'s output. -- gabriel rosenkoetter gr@eclipsed.net Attachment:
pgp5QEkwBzSKL.pgp
|
|