Saturday 15 August 2015

c - call to write() fails unknown reason -


I open a file with open (), I checked my file descriptor and looks fine (3) . But when I try to write on this FD, then write () Return -1 I also print my string, which is shown correctly.

  errno = 9, "bad file descriptor"    

No comments:

Post a Comment