diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2023-06-24 12:47:09 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2023-06-24 12:47:09 -0400 |
commit | f0df110ba42a6d23cb222069e4c2a4712d48d9f1 (patch) | |
tree | 6065cecd996ef7720aa8dfc942d5ec639bb91060 /src/bfstd.h | |
parent | 5c3572dc323527a5c168cc12a31b730e0749002d (diff) | |
download | bfs-f0df110ba42a6d23cb222069e4c2a4712d48d9f1.tar.xz |
bfstd: Add a getprogname() wrapper
Diffstat (limited to 'src/bfstd.h')
-rw-r--r-- | src/bfstd.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bfstd.h b/src/bfstd.h index cafe28f..ebbcdb9 100644 --- a/src/bfstd.h +++ b/src/bfstd.h @@ -106,6 +106,14 @@ char *xgetdelim(FILE *file, char delim); // #include <stdlib.h> /** + * Wrapper for getprogname() or equivalent functionality. + * + * @return + * The basename of the currently running program. + */ +const char *xgetprogname(void); + +/** * Process a yes/no prompt. * * @return 1 for yes, 0 for no, and -1 for unknown. |