KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I already know that stdint is used to when you need specific variable sizes for portability between platforms. I don't really have such an issue for now, but what are the cons and pros of using it besides the already shown fact above? Looking for this on stackoverflow and others sites, I found 2 links that treats about the theme: codealias.info - this one talks about the portability of the stdint. stackoverflow - this one is more specific about uint8_t . These two links are great specially if one is looking to know more about the main reason of this header - portability . But for me, what I like most about it is that I think uint8_t is cleaner than unsigned char (for storing an RBG channel value for example), int32_t looks more meaningful than simply int , etc. So, my question is, exactly what are the cons and pros of using stdint besides the portability? Should I use it just in some specifics parts of my code, or everywhere? if everywhere, how can I use functions like atoi() , strtok() , etc. with it? Thanks!
Tags (comma-separated)
Save Edits
Cancel