The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
292 B
18 lines
292 B
5 years ago
|
#include <stdio.h>
|
||
|
|
||
|
int main (int argc, char * argv[])
|
||
|
{
|
||
|
const char *out = "SUCCESS!";
|
||
|
|
||
|
if (argc != 2) {
|
||
|
printf ("%s\n", out);
|
||
|
} else {
|
||
|
int ret;
|
||
|
FILE *f = fopen (argv[1], "w");
|
||
|
ret = fwrite (out, sizeof (out), 1, f);
|
||
|
if (ret != 1)
|
||
|
return -1;
|
||
|
}
|
||
|
return 0;
|
||
|
}
|