Mathias Fröhlich wrote:
> Erik Hofman wrote:
> > I just noticed there is even an id_t in sys/types.h on IRIX, is this
> > common?
>
> I don't think so.
>
> The only type I know that is guaranteed to be capable of storing the whole
> pointer is a void*. But void* is menat to be not that pure address number in
> the properties, it is meant to store some arbitrary property, which is ok so
> far.

The standard type for this purpose is size_t.  It is part of ANSI
C, and required to be an integer type capable of holding any
value formed by the difference of two char pointers.  I believe
it is required to by defined in <sys/types.h>, but any of the
headers that define functions that use it (e.g. memcpy, strncpy,
etc...) will pull it in.

Andy

_______________________________________________
Flightgear-devel mailing list
[email protected]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to