readlink error code

learningunix
learningunix used Ask the Experts™
on
char buffer[128];
 if ( (len = readlink(path, buffer, sizeof(buffer))) == -1) {
          printf("Error Reading link %d\n", errno);


I get output "Error Reading link 2"
what does 2 implies?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2014
Top Expert 2015
Commented:
printf("%s\n",strerror(errno));

Author

Commented:
Thx

Author

Commented:
its no such file or directory

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial