>Or, perhaps more correctly,
>
> byteptr = (char *) inptr;
>
>I've seen some C's where the non-casted version will
>foul up (because the byte addresses differ from non-byte
>addresses).
I'd get your money back on the C compiler that did that - there's no
difference between byte and non-byte addresses in C. I've only come across
the concept in SPL on MPE and I've used C on about 10 different UNIX
platorms, Windows, MPE and AS400.
It does get rid of the warnings though so I do use casting anyway.
Cheers
Peter
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *