programming question: u_char vs. uint32_t
Andrew
andrew.chace at gmail.com
Fri May 5 01:08:36 UTC 2006
On Thu, 2006-05-04 at 18:03 -0700, John-Mark Gurney wrote:
> 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...
Ahh yes, thank-you. A small case of cognitive indigestion; I think it's
clearing up now. ;-)
-Andrew
More information about the freebsd-hackers
mailing list