diff options
Diffstat (limited to 'util/gamble_fix.c')
-rw-r--r-- | util/gamble_fix.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/util/gamble_fix.c b/util/gamble_fix.c deleted file mode 100644 index 05d536e5..00000000 --- a/util/gamble_fix.c +++ /dev/null @@ -1,26 +0,0 @@ -#include <stdio.h> -#include <stdlib.h> - -int main(int argc, char *argv[]) -{ - FILE *fp; - char buf[100]; - int i, j, count[8]={0,0,0,0,0,0,0,0}; - if(argc<2) - { - printf("useage example:%s ticket.user\n", argv[0]); - return 0; - } - fp=fopen(argv[1], "r"); - if(!fp) return 0; - while(fscanf(fp,"%s %d %d", buf, &i, &j)!=EOF ) - { - count[i]+=j; - } - for(i=0; i<8; i++) - { - printf("%d) %d\n",i+1, count[i]); - } - return 0; -} - |