I am making the C program where I need to get a directory that this program is started from. This program is written on UNIX computers. I have been looking at the opendir() and telldir(), but the telldir() returns the off_t (long int), but it doesn't help me.
How can I get a current path in the string (char array)?