perror shows value of errno. Since no error actually occurred - errno is 0. This is what is being printed
perror shows value of errno. Since no error actually occurred - errno is 0. This is what is being printed
All problems in computer science can be solved by another level of indirection,
except for the problem of too many layers of indirection.
– David J. Wheeler