Graphviz 13.1.3~dev.20250811.0826
Loading...
Searching...
No Matches
gv_find_me.h File Reference

platform abstraction for finding the path to yourself More...

#include <util/api.h>
Include dependency graph for gv_find_me.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

UTIL_API char * gv_find_me (void)
 

Function Documentation

◆ gv_find_me()

UTIL_API char * gv_find_me ( void  )

find an absolute path to the current executable

The caller is responsible for freeing the returned pointer.

It is assumed the containing executable is an on-disk file. If it is an in-memory executable with no actual path, results are undefined.

Returns
An absolute path to the containing executable on success or NULL on failure

Definition at line 65 of file gv_find_me.c.

References free(), NULL, and readln().

Referenced by dflt_gvprpath(), find_me(), and find_share().

Here is the call graph for this function:
Here is the caller graph for this function: