Search Results

Search: Posts Made By: beyond_touch
Forum: Programming 10-12-2010
4,179
Posted By beyond_touch
by 'partial write', I mean that "write does not...
by 'partial write', I mean that "write does not promise it will the exact number of bytes you required on success, It will return the actual number of bytes written"
'len' has nothing to do with...
Forum: Programming 10-11-2010
4,179
Posted By beyond_touch
void copy(FILE *in, FILE *out) { char...
void copy(FILE *in, FILE *out)
{
char buf[8192]={0x0};
ssize_t len=0;
while( ( len=read(fileno(in), buf, sizeof(buf) ) )>0)
write(fileno(out), buf, len);
}


Why...
Showing results 1 to 2 of 2

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