This expands all symlink and directory relative token. Sadly, it is GNU specific, I use it with -std=gnu99
, like printf("%s\n", realpath("/proc/self/exe", NULL))
.
↧
Answer by Koshinae for Getting the full path of a running PID with C/C++ without using the system function (Linux)
↧