Full path of running process.

I want to running process get its full path, it has been run from. How to do it in C?

Using devctl() function with DCMD_PROC_MAPDEBUG_BASE command, process gets only relative path like “./process_name”. Is there some easy or even complicated way to get full path of the running process?