This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Unistd.h is not present in common libs

I would like to use the below API to get the absolute path of working directory , so  i can use them in the code for file operations , i came to know unistd.h file is not present , then how can i get the absolut path without statically defining them


   if (getcwd(cwd, sizeof(cwd)) != NULL) {
       printf("Current working dir: %s\n", cwd);
   }
Parents
  • That making sense would have to presume the applicability of the concept of a "current working directory," on a system built with the tool chains this forum covers.  Which I do find quite doubtful.

Reply
  • That making sense would have to presume the applicability of the concept of a "current working directory," on a system built with the tool chains this forum covers.  Which I do find quite doubtful.

Children
No data