Invalid pointer addresses
    Allan Pratt 
    apratt at atari.UUCP
       
    Fri Sep  9 05:38:14 AEST 1988
    
    
  
In article <12088 at steinmetz.ge.com> davidsen at crdos1.UUCP 
(bill davidsen) writes:
> 
>   I recently proofread a manual which stated that even calculating the
> value of an invalid address could cause a memory fault.
I suppose that a word-addressing machine could cause a memory fault when
you try to put an odd address in an address register:
	register int *bar = (int *)1;	/* address fault */
============================================
Opinions expressed above do not necessarily	-- Allan Pratt, Atari Corp.
reflect those of Atari Corp. or anyone else.	  ...ames!atari!apratt
    
    
More information about the Comp.std.c
mailing list