0213-decay.c (188B)
1 int 2 f(char *v[]) 3 { 4 char *s; 5 6 s = v[0]; 7 8 return s[0] == 's' && s[1] == 'h' && s[2] == '\0'; 9 } 10 11 int 12 main() 13 { 14 int n; 15 16 n = f((char *[]) {"sh", "-c"}); 17 18 if (!n) 19 return 1; 20 return 0; 21 }
sccsimple c99 compiler | |
git clone git://git.simple-cc.org/scc | |
Log | Files | Refs | Submodules | README | LICENSE |