[cs631apue] How to prevent "creat" open already opened file

Julian Sexton jsexton at stevens.edu
Wed Sep 16 20:39:37 EDT 2015


>> The file would be set to 0 bytes. Is there a way that I could prevent copy target are actually the same file with the copy source. 

 

Maybe try the functions here:

 

http://linux.die.net/man/3/basename

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.stevens.edu/pipermail/cs631apue/attachments/20150916/c4fa2cb6/attachment.html>


More information about the cs631apue mailing list