My application uses lseek() to seek the desired position to write data.
The file is successfully opened using open() and my application was able to use lseek() and write() lots of times.
Continuing on this problem, but I'll reiterate:
For a homework assignment I have to write a basic shell including redirection. The program uses readline to prompt for input, parses the ...
I have a program "Sample" which takes input both from stdin and a non-standard file descriptor (3 or 4) as shown below
printf("%s","\nEnter input for stdin");
read(0, pO, ...
In the following snippet i am redirecting the output of the ls command to input of wc -l which works perfectly .Now i also want to redirect the output of ls ...