1 1 |#define LEFT printf(" 2 2 1" |main() 3 3 |{ 4 4 .| LEFT junk, ending with \n"); 5 5 " .|} 6 6 |#include "foobar.h" 7 7 |#define FOO this\ 8 8 | & that 9 9 |#define BAR "this\ 10 10 ? | & that" 11 11 | 12 12 .|static char what[] = "@(#)filename "; 13 13 | 14 14 2 |main() 15 15 |{ 16 16 .| float x = 0.0; 17 17 3 | float x0 = 0e0; 18 18 4 | float x1 = .0; 19 19 5 | float x2 = .0e1; 20 20 6 | float x3 = .0e+1; 21 21 7 | float x4 = .0e-1; 22 22 8 | float x5 = 1.23456789e+123L; 23 23 9 | float x6 = 1.23456789e-123; 24 24 10 | int y = 1; 25 25 11 | int y1 = 1L; 26 26 12 | int y2 = 1ul; 27 27 13 | int y3 = 12345678u; 28 28 14 | int z = 0x1; 29 29 15 | int z1 = 0X1L; 30 30 16 | int z2 = 0X1ul; 31 31 17 | int z3 = 0X12345678u; 32 32 18 | char *a = "aaa""bbb"; 33 33 | 34 34 19? |printf("test with a tab: :embedded (not considered legal by C_COUNT)\n"); 35 35 20 |printf("test with embedded pound\ 36 36 .| # like this\n"); 37 37 |} 38 37 20 |- 39 ---------------- 40 37 20 total lines/statements 41 42 0 lines had comments 0.0 % 43 0 comments are inline 0.0 % 44 3 lines were blank 8.1 % 45 6 lines for preprocessor 16.2 % 46 28 lines containing code 75.7 % 47 37 total lines 100.0 % 48 49 0 comment-chars 0.0 % 50 0 nontext-comment-chars 0.0 % 51 171 whitespace-chars 24.6 % 52 83 preprocessor-chars 12.0 % 53 440 statement-chars 63.4 % 54 694 total characters 100.0 % 55 56 56 tokens, average length 3.57 57 58 0.00 ratio of comment:code 59 3 ?:illegal characters found 60 2 ":lines with unterminated quotes 61 62 3 top-level blocks/statements 63 2 maximum blocklevel 64 1.89 ratio of blocklevel:code 65