mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 08:12:28 +00:00
Apply some touchups
This commit is contained in:
parent
9f149e1de3
commit
2f3bd90216
139 changed files with 1188 additions and 1154 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue