Abraxas/CCS  Home  Table of Contents

Module - 97.html

ABRAXAS SOFTWARE - CodeCheck CCS Test-Suite

CCS -C Test Suite for Module - 97.cpp

// 97) Don't use unions to reinterpret representation.

union {
    long l;
    char *pv;
};
char ch, *pch=&ch;
long int lv, *lvp=&lv;



Function Name: f97()

f97 () {

// bad 97

pch = pv;

// bad 97

lv = l;
}

Abraxas/CCS  Home  Table of Contents

ABRAXAS SOFTWARE - CodeCheck CCS Test-Suite CCS