Abraxas/Misra Home  Table of Contents

Module - m125.html

ABRAXAS SOFTWARE - CodeCheck MISRA Test-Suite Misra-C:1998 Misra-C:2004.

Misra-C Test Suite for Module - m125.c

/* Misra C Enforcement Testing */

Misra C Enforcement Testing */

/* Rule 125: Required */

Rule 125: Required */

/* The library functions atof, atoi and atol from header file */

The library functions atof, atoi and atol from header file */

/* shall not be used. */

shall not be used. */
/*   */
#include 
#include "misra.h"
static void
func125a ( void ) 



Function Name: func125a()

{
    
SC_8 af[] = "1.1";
SC_8 ai[] = "1";
SC_8 al[] = "1";
    
FL_32 f = atof ( af ) ; /*  RULE 125  */
SI_32 i = atoi ( ai ) ; /*  RULE 125  */
SI_64 l = atol ( al ) ; /*  RULE 125  */
    
}

Abraxas/Misra Home  Table of Contents

ABRAXAS SOFTWARE - CodeCheck MISRA Test-Suite Misra-C:1998 Misra-C:2004.