Quantcast
Channel: Getting the full path of a running PID with C/C++ without using the system function (Linux) - Stack Overflow
Viewing all articles
Browse latest Browse all 3

Answer by Koshinae for Getting the full path of a running PID with C/C++ without using the system function (Linux)

$
0
0

man 3 realpath

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)).


Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>