[previous] MISRA C:2012  Rule-21.6:  (Required) [next] The Standard Library input/output functions shall not be used

Amplification:

This rule applies to the functions that are specified as being provided by <stdio.h> and, in C99, their wide-character equivalents specified in Sections 7.24.2 and 7.24.3 of the C99 Standard as being provided by <wchar.h>.

None of these identifiers shall be used and no macro with one of these names shall be expanded.

Example Code:


#include <stdio.h>                      /* 5124 */

#include "misra.h"
#include "m3cmex.h"

extern int16_t rule_2106( void )
{
   return 1;
}


QAC messages that encompass this guideline:

5124 Use of standard header file <stdio.h>.



(c) The Motor Industry Research Association, 2012
QA C Source Code Analyser 8.1.2
MISRA C:2012 Compliance Module 1.0
© 2013 Programming Research
www.programmingresearch.com
Personality Groups | Glossary | Message Index | MISRA C:2012 Rule Index Contents