The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM



Thread: Eof
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 05-10-2008
DNAx86 DNAx86 is offline
Registered User
 

Join Date: Jan 2008
Posts: 69
Eof

How can I write EOF into a file?
I tryed to do as follows:

size=sizeof(EOF);
end_of_file=EOF;

write(fdMutexRichieste, &end_of_file, size);

But it does non work correctly,
becouse in the next cicle (using lseek(..., SEEK_END) of my code it seems to ignore my EOF and use the LAST (and ORIGINAL) EOF.
Reply With Quote
Forum Sponsor