programming question: u_char vs. uint32_t

John-Mark Gurney gurney_j at resnet.uoregon.edu
Fri May 5 01:03:38 UTC 2006


Andrew wrote this message on Thu, May 04, 2006 at 19:57 -0500:
> I'm reading through /usr/src/sys/dd/dd.h, and I noticed the following
> lines:
> 
> 39      u_char          *db;            /* buffer address */
> 40	u_char          *dbp;           /* current buffer I/O address */
> 
> Why was u_char used instead of uint32_t? Aren't pointers always 32 bits
> on a 32 bit machine?

You're confusing the type of the pointer w/ a pointer...  These are
correct, please read a basic intro to pointers in C...

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."


More information about the freebsd-hackers mailing list