Debian Codegraph @

vendored-meson/meson/test cases/unit/36 exe_wrapper behaviour/prog.c

raw
1 #include <stdio.h>
2
3 int main (int argc, char * argv[])
4 {
5 const char *out = "SUCCESS!";
6
7 if (argc != 2) {
8 printf ("%s\n", out);
9 } else {
10 int ret;
11 FILE *f = fopen (argv[1], "w");
12 ret = fwrite (out, sizeof (out), 1, f);
13 if (ret != 1)
14 return -1;
15 }
16 return 0;
17 }