MISRA Discussion Forums

Full Version: Rule 5.1
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Need clarification on rule 5.1 (equivalenet to rule 11 in MISRA C1):

Does this rule disallow to use identifier that has more than 31 characters? Even though the first 31 characters are guaranteed to be distinct.

Thanks,

quangp
Identifiers can be longer than 31 characters, but must be unique within the first 31 characters.

This is detailed in the supporting text of the rule in MISRA-C:2004.