cosmopolitan/test/libc/release/smoke.c

15 lines
290 B
C
Raw Normal View History

int main(int argc, char *argv[]) {
int rc;
2021-02-07 14:11:44 +00:00
char *s;
FILE *f;
ShowCrashReports();
2021-02-07 14:11:44 +00:00
s = strdup(argv[0]);
s[0] = 'Z';
f = fopen("/dev/null", "w");
fputs(_gc(xiso8601ts(NULL)), f);
fputs(_gc(xasprintf("hello world %d %s\n", argc, s)), f);
fclose(f);
2021-02-07 14:11:44 +00:00
free(s);
return 0;
}