magic cookies given back by ftell, and used in fseek

Karl Heuer karl at haddock.ISC.COM
Fri May 27 05:05:45 AEST 1988


In article <1024 at cresswell.quintus.UUCP> ok at quintus.UUCP (Richard A. O'Keefe) writes:
>The UNIX "ftell" manual page warns that on non-UNIX systems "arithmetic may
>not meaningfully be performed on" magic cookies, and you have to regard
>comparing for equality as arithmetic.

That's not the common interpretation of "performing arithmetic".  I think the
ANSI Standard should explicitly state which comparison operators, if any, are
guaranteed to be meaningful for fseek-cookies in a conforming implementation.

Karl W. Z. Heuer (ima!haddock!karl or karl at haddock.isc.com), The Walking Lint



More information about the Comp.lang.c mailing list