[lokisetup] symlink paths

Ryan C. Gordon icculus at clutteredmind.org
Thu Jul 25 17:05:31 EDT 2002

> 	is there a way to test to see if my program was run from a symlink, and
> if so, find out where that symlink points?

(Again, PhysicsFS does all this for you.)

If you have the path to the symlink(), run it through realpath(), and it
will give you the actual final destination. You can also use readlink().


More information about the Lokisetup mailing list