Re: write




"Bill Waddington" <william.waddington@xxxxxxxxxx> wrote in message
news:c75a149109g74qhdr6tiqd9i9jkh61jvaq@xxxxxxxxxx

What does file say if you call write thusly:

if((t=write(file,buf,7))==-1) {

Just curious,
Bill

Just like I thought. Just enough space for the string "string\0" String
and the terminating \0. I changed it to strlen though.

Bill


.