Return the errno from open func. and print it to screen
i am programming Cli/Ser ,so part of the program is to open file to download it from client side,but i want to return the global value Errorno to print it to screen , and how to use strerror() func ???
i write this "This is part of server code" :
if the fd <0 return error ,i want to know what is the error and print it to screen
//error handilng in open file
fprintf(stderr,"The Error is : \n");
**note :when i use perror() ,the result print to screen like this