Apply some touchups

This commit is contained in:
Justine Tunney 2021-02-07 06:11:44 -08:00
parent 9f149e1de3
commit 2f3bd90216
139 changed files with 1188 additions and 1154 deletions

View file

@ -1,11 +1,14 @@
int main(int argc, char *argv[]) {
int rc;
char *s;
FILE *f;
s = strdup(argv[0]);
f = fopen("/dev/null", "w");
fprintf(f, "hello world %d\n", argc);
fprintf(f, "hello world %d %s\n", argc, s);
fclose(f);
rc = system("exit 42");
CHECK_NE(-1, rc);
CHECK_EQ(42, WEXITSTATUS(rc));
free(s);
return 0;
}