/* >>>------------------------------------------------------------ * * File: rule_20.10.c, Module: M2CM-3.2-QAC-8.1.2 * * RULE 20.10 (Required): * The library functions atof, atoi and atol from library * shall not be used. * * Implemented by message: * 5125 The library functions atof, atoi and atol from library * shall not be used. * * <<<------------------------------------------------------------ */ /* PRQA S 2983,3203 ++ */ #include #include "misra.h" #include "m2cmex.h" extern S16 test_2010( void ) { F64 d; S16 i; S32 l; d = atof( "12.34" ); /* MISRA Violation */ i = atoi( "3456" ); /* MISRA Violation */ l = atol( "12345678" ); /* MISRA Violation */ return 0; }