[Info-vax] nice for VMS

glen herrmannsfeldt gah at ugcs.caltech.edu
Fri Apr 17 18:14:51 EDT 2009


John Reagan <johnrreagan at earthlink.net> wrote:
 
> For a pointer to an int, the compiler certainly assumes that the int is 
> aligned on whatever boundary an int should be.  By default, the C compiler 
> will assume that an int is on a longword boundary.

Yes.  If you want to do anything other than use a pointer
as the appropriate type, pretty much the only way is
to cast to (unsigned char *) and operate on that.

The standard way would be to memmove the data to an int,
casting pointers to both to (unsigned char *).  

-- glen



More information about the Info-vax mailing list