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

Function executable_path

v2/engine/jam.c:612–617  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

610# define WIN32_LEAN_AND_MEAN
611# include <windows.h>
612char * executable_path( char const * argv0 )
613{
614 char buf[ 1024 ];
615 DWORD const ret = GetModuleFileName( NULL, buf, sizeof( buf ) );
616 return ( !ret || ret == sizeof( buf ) ) ? NULL : strdup( buf );
617}
618#elif defined(__APPLE__) /* Not tested */
619# include <mach-o/dyld.h>
620char *executable_path( char const * argv0 )

Callers 1

builtin_self_pathFunction · 0.85

Calls 1

strdupFunction · 0.85

Tested by

no test coverage detected