atom feed3 messages in org.freebsd.freebsd-hackersprogramming question: u_char vs. uint...
FromSent OnAttachments
AndrewMay 5, 2006 12:59 am 
John-Mark GurneyMay 5, 2006 1:03 am 
AndrewMay 5, 2006 1:08 am 
Subject:programming question: u_char vs. uint32_t
From:John-Mark Gurney (gurn@resnet.uoregon.edu)
Date:May 5, 2006 1:03:21 am
List:org.freebsd.freebsd-hackers

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...

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