libexplain  1.4.D001
Functions
libexplain/fileinfo/self_exe.c File Reference
#include <libexplain/ac/unistd.h>
#include <libexplain/fileinfo.h>

Go to the source code of this file.

Functions

int explain_fileinfo_self_exe (char *data, size_t data_size)

Function Documentation

int explain_fileinfo_self_exe ( char *  data,
size_t  data_size 
)

The explain_fileinfo_self_exe function may be used to obtain the absolute path of the executable file of the executing process.

Parameters:
dataWhere to return the path.
data_sizeThe maximum size of the returned path.
Returns:
true (non-zero) on success, or false (zero) on error

Definition at line 26 of file self_exe.c.