I have a shared library with 2 methods (among others of course) that i want to port to linux:
GetProcessName() - Should get the executable name or path (either would do)
GetModuleName() - Should return the name of the module that's running the code (either dll or exe).
In a windows environment I use GetModuleFileName with a different variation for both methods.
I've seen plenty of solutions for getting the process name, but most of them seem kinda Hacky.
And I haven't found a solution for getting the module name.
Is there a similar function in linux ?
How can I implement them ?