# | Line 29 | Line 29 | wordfile( /* get words from fname, put in words */ | |
---|---|---|
29 | { | |
30 | int wrdcnt = 0; | |
31 | int n = 0; | |
32 | – | int dlen = 0; |
32 | int fd; | |
33 | char buf[MAXWLEN]; | |
34 | /* load file into buffer */ | |
# | Line 41 | Line 40 | wordfile( /* get words from fname, put in words */ | |
40 | return(-1); /* open error */ | |
41 | words[0] = NULL; | |
42 | while (nargs > 1 && (n += read(fd, buf+n, MAXWLEN-n)) > 0) { | |
43 | < | dlen = n; |
43 | > | int dlen = n; |
44 | int crem = 0; | |
45 | if (n > MAXWLEN/2) /* check for mid-word end */ | |
46 | while (!isspace(buf[--n])) { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |