I am taking CMPT 300 which is Operating Systems I. Part of our first assignment requires us to do the following :
Write a program called filter that using a function with the prototype :
void filter(int filedesc, int tab_stop)
The program will read a file and replace all '\t' instances with a number of spaces that is specified by the command line arguments.
you are only allowed to use the system calls read(),open(),close(), you cannot use fopen() or any other iostream.h functions
In PERL I could have done this in 2 seconds
. Right now I have no error checking, and I am handling my own buffer space! I think
I like C programming
Write a program called filter that using a function with the prototype :
void filter(int filedesc, int tab_stop)
The program will read a file and replace all '\t' instances with a number of spaces that is specified by the command line arguments.
you are only allowed to use the system calls read(),open(),close(), you cannot use fopen() or any other iostream.h functions
In PERL I could have done this in 2 seconds
I like C programming
