version 1.11, 2004/12/02 22:54:55 |
version 1.12, 2007/02/20 01:56:12 |
|
|
} |
} |
} |
} |
while (!feof(unitfile)) { |
while (!feof(unitfile)) { |
if (!fgets(line, 79, unitfile)) |
if (!fgets(line, sizeof(line), unitfile)) |
break; |
break; |
linenum++; |
linenum++; |
lineptr = line; |
lineptr = line; |
|
|
initializeunit(&have); |
initializeunit(&have); |
if (!quiet) |
if (!quiet) |
printf("You have: "); |
printf("You have: "); |
if (!fgets(havestr, 80, stdin)) { |
if (!fgets(havestr, sizeof(havestr), stdin)) { |
if (!quiet) |
if (!quiet) |
putchar('\n'); |
putchar('\n'); |
exit(0); |
exit(0); |
|
|
initializeunit(&want); |
initializeunit(&want); |
if (!quiet) |
if (!quiet) |
printf("You want: "); |
printf("You want: "); |
if (!fgets(wantstr, 80, stdin)) { |
if (!fgets(wantstr, sizeof(wantstr), stdin)) { |
if (!quiet) |
if (!quiet) |
putchar('\n'); |
putchar('\n'); |
exit(0); |
exit(0); |