Data types

Where are the _Uint8t and others defined? Should I use these typedefs in my
programs or should I use the ones defined in /sys/types.h such as uchar_t?

Chris Rose <chris.rose@viasat.com> wrote:

Where are the _Uint8t and others defined? Should I use these typedefs in my
programs or should I use the ones defined in /sys/types.h such as uchar_t?

<sys/platform.h>, through a winding trail. We use them in our public header
files to avoid intruding on the user’s namespace (defining things that
user code isn’t expecting to be defined when they include a particular
header). If you’re not defining a public header file that you expect
joe random programmer to be including, stay away from these types and
use the ones defined in <sys/types.h>, <inttypes.h>, etc.

\

Brian Stecher (bstecher@qnx.com) QNX Software Systems, Ltd.
phone: +1 (613) 591-0931 (voice) 175 Terence Matthews Cr.
+1 (613) 591-3579 (fax) Kanata, Ontario, Canada K2M 1W8