oga's tools
Revision | 97c43c418b88582d01cd384925b9cbd8b553a040 (tree) |
---|---|
Time | 2014-01-03 17:39:17 |
Author | oga <oga@mxg....> |
Commiter | oga |
13.01.03 V1.03 u2dos.c support Win/X68K
@@ -4,10 +4,12 @@ | ||
4 | 4 | * 96.04.07 V1.00 by oga |
5 | 5 | * 07.05.13 V1.01 fix bug |
6 | 6 | * 11.01.01 V1.02 fix empty line bug |
7 | + * 13.01.03 V1.03 support Win/X68K | |
7 | 8 | */ |
8 | 9 | #include <stdio.h> |
9 | 10 | #include <stdlib.h> |
10 | 11 | #include <string.h> |
12 | +#include <fcntl.h> | |
11 | 13 | |
12 | 14 | main(a,b) |
13 | 15 | int a; |
@@ -28,6 +30,8 @@ char *b[]; | ||
28 | 30 | fp = stdin; |
29 | 31 | } |
30 | 32 | |
33 | + setmode(fileno(stdout), O_BINARY); /* V1.03-A */ | |
34 | + | |
31 | 35 | #if 1 /* V1.01-C */ |
32 | 36 | while (fgets(buf, sizeof(buf), fp)) { |
33 | 37 | len = strlen(buf); |