#include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>
Go to the source code of this file.
Definition at line 27 of file genarray.c.
30 char *fnames[] = {
"ot.bks",
"ot.cps",
"nt.bks",
"nt.cps"};
34 #ifndef O_BINARY // O_BINARY is needed in Borland C++ 4.53
35 #define O_BINARY 0 // If it hasn't been defined than we probably
36 #endif // don't need it.
39 for (l1 = 0; l1 < 2; l1++) {
40 for (l2 = 0; l2 < 2; l2++) {
42 sprintf(buf,
"%s", fnames[(l1*2)+l2]);
43 printf(
" // %s\n", fnames[(l1*2)+l2]);
45 while (read(fd, &val, 4) == 4) {
47 printf(
"%ld, ", val/(4 + (l2*2)));