How to know the path to executable in C++ Mac OS?

Need to find the path to the executable file in the folder of its location to check the files from there.
March 12th 20 at 08:11
2 answers
March 12th 20 at 08:13
Not quite understand the question. You give an example what you want to do and what result to receive.

Because posix file systems, the file location and its presence is not necessary for an already opened file, as handler points to an inode not directory entry.
March 12th 20 at 08:15
Well, the most simple and cross-platform is take the first parameter to main is the path to the executable program.

Find more questions by tags macOSC++