4381bb2a22
When the execution reaches the end of the main functions, they implicitly return a successful status.
10 lines
235 B
C
10 lines
235 B
C
#include <stdio.h>
|
|
#include <errno.h>
|
|
|
|
int main(void) {
|
|
FILE *f = fopen("stdio/fputs.out", "w");
|
|
char *in = "Hello World!";
|
|
fputs(in, f); // calls fwrite, helpers::fwritex, internal::to_write and internal::stdio_write
|
|
fclose(f);
|
|
}
|