Is there a platform-agnostic and filesystem-agnostic method to obtain the full path of the directory from where a program is running using C/C++? Not to be confused with the
Use realpath() in stdlib.h like this:
realpath()
stdlib.h
char *working_dir_path = realpath(".", NULL);