HP3000-L Archives

April 2005, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Peter Smithson <[log in to unmask]>
Reply To:
Peter Smithson <[log in to unmask]>
Date:
Wed, 27 Apr 2005 13:19:45 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (22 lines)
>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 *

ATOM RSS1 RSS2