Function in stdx_filesystem.h

x_fs_executable_find

Find an executable in the directories listed by PATH.

X_FILESYSTEM_API bool x_fs_executable_find(
 const char *name,
 XFSPath *out_path
);

Parameters

const char *name
Executable name to find. On Windows, PATHEXT is searched when the name does not already resolve to a file.
XFSPath *out_path
Output path receiving the executable path.

Returns

True when an executable was found, false otherwise.

Function in stdx_filesystem.h

x_fs_path_from_executable

Get the executable path (or executable directory, depending on implementation).

X_FILESYSTEM_API size_t x_fs_path_from_executable(XFSPath *out);

Parameters

XFSPath *out
Output path to receive the executable path.

Returns

Length written to out, or 0 on failure.