lkml.org 
[lkml]   [1999]   [Feb]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Q: void* vs. unsigned long
Date
> But what we need here is "an integral type which can represent all
> possible pointer values". Unsigned long should be safe for that on all
> sane architectures/compilers[1] and might even be guaranteed by the C
> standard. Probably won't work on all DSPs though, but we're not likely to
> see any of those running Linux soon for other reasons.

IIRC, C9X defines intptr_t in inttypes.h that does just this.

--
He asks a girl if they can both sit in a chair,
but he doesn't get nervous: she's not really there!

http://www.cs.pdx.edu/~idr is the home of the Dancing Fool

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.102 / U:0.544 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site