Re: void pointer
- From: Keith Thompson <kst-u@xxxxxxx>
- Date: Fri, 22 Jun 2007 14:51:42 -0700
Harald van Dĳk <truedfx@xxxxxxxxx> writes:
Keith Thompson wrote:
richard@xxxxxxxxxxxxxxx (Richard Tobin) writes:
- If you only care about pointers and integer types, use a sufficiently[...]
long integer type, and cast pointers to that. In C99 intptr_t is
suitable; in C90 there's no guaranteed-big-enough type.
C99 doesn't guarantee that there's a sufficiently long integer type.
If there isn't, intptr_t won't exist.
And even if there is, intptr_t needn't exist.
True; all the C99 standard says is "These types are optional."
I'd expect any decent implementation to define them if possible. The
DS9K probably defines them or not depending on the phase of the moon
(and not necessarily *our* moon).
Keith Thompson (The_Other_Keith) kst-u@xxxxxxx <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
- Prev by Date: Re: How widely supported is variable type 'long long int' ?
- Next by Date: Re: Cholesky-Crout algorithm
- Previous by thread: Re: void pointer
- Next by thread: Re: void pointer