12 int main(
int argc,
char **argv)
15 int status, fd, nbytes;
18 fd = open(
"TR.txt", O_RDONLY);
19 assert( fd>=0 &&
"couldn't open text file" );
23 assert(status>=0 &&
"couldn't read from text file");
30 fd = open(
"input.data", O_WRONLY|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH);
31 assert( fd>0 &&
"Couldn't open input data file" );
void data_to_input(int fd, void *vdata)
char pattern[PATTERN_SIZE]
int main(int argc, char **argv)
short int read(short int *data)