Abraxas/CCS  Home  Table of Contents

Module - 19.html

ABRAXAS SOFTWARE - CodeCheck CCS Test-Suite

CCS -C Test Suite for Module - 19.cpp

// 19) Always initialize variables.

void



Function Name: f19()

f19() {

// bad 19 declare

// trigger on the case of a declare without an init

    int l19;

// good 19

    int l19ok = 1;

// bad 19 usage

// trigger on the case of a non-init being used.

    if ( l19 ) { 
    }

// good 19

    if ( l19ok ) {
    }
}

Abraxas/CCS  Home  Table of Contents

ABRAXAS SOFTWARE - CodeCheck CCS Test-Suite CCS