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