-
Notifications
You must be signed in to change notification settings - Fork 0
/
prog.c
120 lines (96 loc) · 2.57 KB
/
prog.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
#ifndef Q
#include <stdio.h>
#define F_ 'p'+0xe*00*0xf+p-'p'
typedef unsigned long U;
#define G '\b'*'\b'-p*2+w
typedef char C;typedef void
#define _(s,x)void s(){x;}
(*asd)();U a=0,k=
#define OK(s)'('+'s'-')'
0,m='\t';FILE*f=0
#define TR (qaz+i)
;C c=0,*w=0,l=1,u
#define LF 0xF+0xA\
-0xC+EOF-0xF+'-'-'+'
=1,i=1,p=1,b=1,d=
#define F p-'@'+*t+p
1,z=1,xz=1,**t=&w;
#define ER if('i'-\
'I'>i&&i>='i'-'i')
#else
#undef _
asd
#undef N
qaz[
#undef B
]=
#define _(s,x)s,
#define ZX while(xz)
#define QA i='x'/'('+*(*t)++-' '-' '-' '; \
p=*w+++'w'-'p'-'\a';z='3'+'*'-'2'-'+';ER
#define AX if ('>'-'x'+'<'>x) {Z; \
printf("\n\n%s file.c/cpp/h\n\n\
Output:filename.ext;LOC;TotalNumOfLines\n",y[0]);}else{
#define SA f=fopen(y[1],"rb");if (0x0==f) \
fprintf(stderr,"%s file open error!\n",y[1]);else{
#define Z for(m<<='\"'-' ';a<=','*'\t';k%=m) \
printf("%s%c",k++?"":"\n",*(d_+a++));
#define P_ *t='{'+d_-'}'+9%7;rs();printf( \
"%s;%lu;%lu\n",y[1],a,k);
#define WE fclose(f);}}
{
#endif
#define N(h,x)_(h,d='d'-'d';d|=b;b=x)
#define B(j,x)_(j,*t=x)
_(a1,u='u'-'u';u^=l;l=c;c=(C)fgetc(f
))N(a2,c==F_)_(a3,a+=k)N(a5,c!=F_)_(
a6,a+=m) N(a7,c== (' '+
'$')/* OBFUSCATED *//2
)_/* PROGRAM TO COUNT C/C++ */
/* LOC & TOTAL NUMBER OF LINES **/(
a8 ,a++)N
(a9,c!=('#'+'!')/2)_(b1,a=0)N(b2,c==
LF)_(b3,k++)N(b4,c!=LF)_(b5,k=0)N(b6,
c== '/'-('&'+
'$')/02)_(b7,m=0
)N(b8,c!='*'-'`'/(
'.'-'+'))_(b9,m=1)N
(c1,b&& OK( b)
&&d)N (
c2,b||!
OK(d)||
d)N(c3,
F_==l)N
(c4,l!=
p)N(c5, c=='x'
/'\f'-'/'+'.')N(c6,
c=='l'%'_')N(c7, l
=='m'%'`') N(c8,
u=='%'+(('6'+
'8' )>>1))B (c9,0xF+
F - 0xF) B(d1 ,'G' +G-
'G' )B( d2, b?F :w)
B ( d3, b?G :*t
)N( d4, l== 'F'
/7) N ( d5, l== ( (
'['+']') >>1 ))_ (d6 ,xz
-='l'/ ( '\t'*/*** */'\f');)
#ifdef Q
};void rs( ) { ZX {QA(*TR)();}}C d_[]=
"eIi8m:]@j>x;t+x9f$x1^/x:^*x;bSx|^'x:"
"^ y1rAy3s/y5aPk*w8z1x#t/x!g5|>g;mPj?"
"yBw>p/xAwFp/xPwIa%kH]:^'x'f1y8jMx1tI"
"x/w,{>v' x!w8uSy:w:g5mB"
"w=vxv- DEDICATED TO w^w8"
"v1v/ DENNIS RITCHIE (1941-2011) ve"
"v/ CO-INVENTOR OF C AND UNIX a4k("
"v. ]Gb5x'"
"fJyhj6x+t%x)wK{5x##,wbwru(y$wSgDm:wV"
"]-jOx'tNx%f$y.t%y1w*g4m$j,y6w*]@j6x'"
"t6x%f3y=^/x&w*g>m+j%y.w*p*yHw2u9]*a*"
;int main(int x,C *y[ ]) {AX SA P_ WE
return 0;}
#else
#define Q
#include __FILE__
#endif