Trying to understand read() in Ubuntu
I am trying to learn read() system call using the following code that reads from the stdin and outputs what was read to the stdout : # include <unistd.h> # include <stdio.h> int main() { int b=10; char buff [b]; int n= read(0,buff,b); write(1,buff,n); printf("%d \n",n); } As it is clear the max. bytes to… Read More Trying to understand read() in Ubuntu