0213-decay.c - scc - simple c99 compiler
(HTM) git clone git://git.simple-cc.org/scc
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
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 }