Rule 5.1

6.5 Identifiers

Moderators: misra-c, david ward

Locked
quangp
Posts: 1
Joined: Mon Apr 03, 2006 5:00 pm

Rule 5.1

Post by quangp » Wed Apr 05, 2006 11:37 pm

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

misra-c
Posts: 572
Joined: Thu Jan 05, 2006 1:11 pm

Post by misra-c » Thu Apr 27, 2006 11:43 am

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.
---
Posted by and on behalf of
the MISRA C Working Group

Locked

Return to “6.5 Identifiers”