gpakosz/whereami
View on GitHub ↗ ★ 531 C
Locate the current running executable and the current running module/library on the file system 🔎
4 mentions on Hacker News by 3 people: 1 story, 3 comments · first 2015-03-05 · latest 2024-09-03
20082026
-
There's also this very handy and tiny cross-platform library: https://github.com/gpakosz/whereami
comment by flohofwoe · 2024-09-03 · in Why bother with argv[0]? -
…executable. [1] _NSGetExecutablePath, GetModuleFileName(), getexecname() etc EDIT: Apparently https://github.com/gpakosz/whereami will manage a lot of this complexity for you
comment by mmastrac · 2022-07-26 · in What's the most portable way to include binary blobs in an executable? -
…executable, and doing this in a portable way is several hundred lines of code already, e.g.: https://github.com/gpakosz/whereami/blob/master/src/whereami...
comment by flohofwoe · 2015-12-31 · in Incorporating and accessing binary data into a C program