Skip to content

Commit

Permalink
blah
Browse files Browse the repository at this point in the history
  • Loading branch information
hackerb9 committed Jul 16, 2024
1 parent 927c2d3 commit fd7af8b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion foo.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
main() {
FILE *fp = stdout;
#ifdef _WIN32
_setmode(fileno(stdout), O_BINARY)
if ( _setmode(fileno(stdout), O_BINARY) == -1 ) {
perror("_setmode to binary failed");
exit(1);
}
#endif
fprintf(fp, "foo\nbar\n");
fprintf(fp, "foo\012bar\012");
Expand Down

0 comments on commit fd7af8b

Please sign in to comment.