Is there any method to get the path of my program?

I want a cross-platform solution.

Can I get it by an API of SDL?

thx.–
??Opera???http://www.opera.com/mail/