Making sure I read 4 bytes

I have a binary file that I'm trying to read. The first "chunk" is the version of the file, which is 4 bytes. I'm used to using unsigned int, but I know that this isn't proper. I did some looking, and found this:

int32_t

Looks good. I wonder though, is it signed? Is there a list of all such types? For example, I imagine there is int16_t, where might I confirm this? Are there types like this for floating points?
Last edited on
Read about cstdint at http://www.cplusplus.com/reference/cstdint/

Maybe helps a bit :)
I does, thanks. Also:
http://www.cplusplus.com/reference/cuchar/

This:
http://www.cplusplus.com/reference/cfloat/

Makes me wonder about floating points (float, double). Is it safe to assume a float is 4 bytes?
Topic archived. No new replies allowed.