8
char *fnames[] = {"ot.bks", "ot.cps", "nt.bks", "nt.cps"};
12
#ifndef O_BINARY // O_BINARY is needed in Borland C++ 4.53
13
#define O_BINARY 0 // If it hasn't been defined than we probably
14
#endif // don't need it.
17
for (l1 = 0; l1 < 2; l1++) {
18
for (l2 = 0; l2 < 2; l2++) {
20
sprintf(buf, "%s", fnames[(l1*2)+l2]);
21
printf(" // %s\n", fnames[(l1*2)+l2]);
22
fd = open(buf, O_RDONLY|O_BINARY);
23
while (read(fd, &val, 4) == 4) {
25
printf("%ld, ", val/(4 + (l2*2)));