MISRA Discussion Forums

Full Version: Use reserved identifier as input parameter of function
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

It is defined in the Rule 21.2 that reserved identifier from standard library should not be used.

I have following example for a function definition.
void func_a (uint8 time)

time is reserved identifier from time.h, but it is used as input paramter for the function syntax. does it violate the rule 21.2?

Thanks
Lai
Yes, your example does violate rule 21.2.