Hacker News new | ask | show | jobs
by cperciva 1434 days ago
If you have a shell:

# command -p getconf PATH

If you're writing C code of course you just use the library function.