Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 May 2006 18:03:35 -0700
From:      John-Mark Gurney <gurney_j@resnet.uoregon.edu>
To:        Andrew <andrew.chace@gmail.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: programming question: u_char vs. uint32_t
Message-ID:  <20060505010335.GW728@funkthat.com>
In-Reply-To: <1146790669.3352.38.camel@LatitudeFC5.network>
References:  <1146790669.3352.38.camel@LatitudeFC5.network>

next in thread | previous in thread | raw e-mail | index | archive | help
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."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060505010335.GW728>