We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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); }
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.