MISRA Discussion Forums
Use reserved identifier as input parameter of function - Printable Version

+- MISRA Discussion Forums (https://forum.misra.org.uk)
+-- Forum: MISRA C (https://forum.misra.org.uk/forumdisplay.php?fid=4)
+--- Forum: MISRA C:2012 and MISRA C:2023 guidelines (https://forum.misra.org.uk/forumdisplay.php?fid=21)
+---- Forum: 8.21 Standard libraries (https://forum.misra.org.uk/forumdisplay.php?fid=176)
+---- Thread: Use reserved identifier as input parameter of function (/showthread.php?tid=1341)



Use reserved identifier as input parameter of function - lai56 - 25-04-2017

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


Re: Use reserved identifier as input parameter of function - misra-c - 14-06-2017

Yes, your example does violate rule 21.2.