Alex Rivera | Logout

What is u_int32_t?

Asked 2011-03-02T05:42:13.130
17

Possible Duplicate:
Datatypes used in C

Hi I'm doing porting from Linux to Visual C ++. And I found quite a few errors. What is u_int32_t ? I can't find it in Visual C ++? Is it only available in Linux? Which type should I use in Visual C++? Thanks in advance !!!

Kevin

Edit
Report

1 Answer

2

This is an int datatype that is unsigned guaranteed to be 32 bits. To use it you need to include the stdint.h.

I am not sure whether this is available directly in the latest version of VC++. The wikipedia page has links to various implementations that work with Microsoft compilers (e.g. msinttypes).

If you are sure that the default unsigned int type is always going to be 32 bits, you may be able to just substitute unsigned int in its place. But using an explicit 32 bit datatype is preferable.

answered 2011-03-02T05:49:42.783

Your Answer