absolute pointer

Henry Spencer henry at utzoo.UUCP
Fri Oct 31 10:51:25 AEST 1986


> rap.c, line 310: warning: absolute pointer used
> 
> 		if ( shmaddr EQ (char *) -1 ) {

The compiler is trying to warn you, in a somewhat cryptic way, that casting
any integer except the constant 0 into a pointer is a machine-dependent,
unportable, and dangerous operation.
-- 
				Henry Spencer @ U of Toronto Zoology
				{allegra,ihnp4,decvax,pyramid}!utzoo!henry



More information about the Comp.lang.c mailing list