VSS Package Index  Abraxas VSS Home Table of Contents

Abraxas Software, Inc.


CodeCheck Voting System Standards Test Suite - v542u.c

v542u.c(1): /*
vss542u. Has all constants other than 0 and 1 defined or enumerated, or shall have a
comment which clearly explains what each constant means in the context of
its use. Where “0” and “1” have multiple meanings in the code unit, even
they should be identified. Example: “0” may be used as FALSE, initializing
a counter to zero, or as a special flag in a non-binary category.
v542u.c(7): */
v542u.c(8): 
// good cases
v542u.c(10): 
v542u.c(11): #define FOURLETTERWORD 100
v542u.c(12): #define NULL 0
v542u.c(13): 
v542u.c(14): char my_array[FOURLETTERWORD];	//	is fine
v542u.c(15): 
v542u.c(16): int beginTime;
v542u.c(17):  beginTime = time (NULL);
v542u.c(18): 
v542u.c(19): int array[100];	// good, has comment
v542u.c(20): 
// BAD CASES FOLLOW ....
v542u.c(22): 
v542u.c(23): 
v542u.c(24): char my_array2[4];			
v542u.c(25): int array[100];
v542u.c(26): 
v542u.c(27): int dog = 100;		
v542u.c(28): 
v542u.c(29): char my_array1[4];				
v542u.c(30): 

VSS Package Index  Abraxas VSS Home Table of Contents

CodeCheck Copyright (c) 1988-2006 by Abraxas Software Inc. (R). All rights reserved.