Search Results

Search: Posts Made By: omega666
Forum: Programming 03-14-2011
5,071
Posted By Corona688
ls can tell the difference between a terminal and...
ls can tell the difference between a terminal and a pipe. ls | cat will do that too. In other words -- that's normal.
Remember that read() doesn't null-terminate for you -- it's a general purpose...
Forum: Programming 03-14-2011
5,071
Posted By Corona688
Now I know you don't try the code I post for you,...
Now I know you don't try the code I post for you, my version doesn't do that.

It's because, as stated above, read() doesn't add NULLs for you. This causes printf() to write more data than you...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 04:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy