Is it considered as bad style to have a mixture of exact width types (introduced by C99) and standard C types in one prototype definition? E.g.
int some_func (uint32_t flags,
int on_off_switch);
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
One generally uses an exact width type if the exact width is important to your code, for example if you absolutely need to know how many bits the representation of the integer will take up. It is certainly possible for some of the parameters to a function to have such constraints and others not to — it all depends on precisely what you are doing.