casting int constants to pointers (was: switch (expression))

Karl Heuer karl at haddock.ISC.COM
Tue Jul 19 01:59:07 AEST 1988


[karl at haddock writes:]
>Neither sbrk() nor shmop() is part of the ANSI C library.  I hope POSIX will
>fix this.

As soon as I sent this, I realized it was misworded.  What I meant was "I hope
that the appropriate POSIX committee will (or did) fix the (char *)-1 problem
for sbrk() and shmat(), just as X3J11 fixed it for signal()".  (I'm assuming
that sbrk() and shmat() are within the POSIX jurisdiction.  They certainly
aren't in X3J11's.)

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



More information about the Comp.std.c mailing list