oga's tools
Révision | 2a28d2d79bfd88df3c6a3d7a28d22e8b063e8ed5 (tree) |
---|---|
l'heure | 2015-04-13 05:05:29 |
Auteur | oga <hyperoga@gmai...> |
Commiter | oga |
Merge branch 'master' of git.pf.sourceforge.jp:/gitroot/h/hy/hyperoga/ogatool
@@ -2,6 +2,7 @@ | ||
2 | 2 | * SJIS対応fold |
3 | 3 | * |
4 | 4 | * 08/01/17 V0.10 by oga. |
5 | + * 14/12/31 V0.11 fix arg bug. | |
5 | 6 | */ |
6 | 7 | #include <stdio.h> |
7 | 8 | #include <stdlib.h> |
@@ -21,7 +22,7 @@ int main(int a, char* b[]) | ||
21 | 22 | unsigned char buf[100000]; |
22 | 23 | FILE *fp; |
23 | 24 | |
24 | - for (i = 0; i < a; i++) { | |
25 | + for (i = 1; i < a; i++) { /* V0.11-C */ | |
25 | 26 | if (!strcmp(b[i], "-h")) { |
26 | 27 | printf("usage: fold [-w <width>] [<filename>]\n"); |
27 | 28 | exit(1); |