MCPcopy Create free account
hub / github.com/boostorg/build / executable_path

Function executable_path

src/engine/jam.c:634–639  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

632# define WIN32_LEAN_AND_MEAN
633# include <windows.h>
634char * executable_path( char const * argv0 )
635{
636 char buf[ 1024 ];
637 DWORD const ret = GetModuleFileName( NULL, buf, sizeof( buf ) );
638 return ( !ret || ret == sizeof( buf ) ) ? NULL : strdup( buf );
639}
640#elif defined(__APPLE__) /* Not tested */
641# include <mach-o/dyld.h>
642char *executable_path( char const * argv0 )

Callers 1

builtin_self_pathFunction · 0.85

Calls 2

strdupFunction · 0.85
freeFunction · 0.85

Tested by

no test coverage detected