diff options
Diffstat (limited to 'goo/gbasename.h')
-rw-r--r-- | goo/gbasename.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/goo/gbasename.h b/goo/gbasename.h new file mode 100644 index 00000000..3c5e0065 --- /dev/null +++ b/goo/gbasename.h @@ -0,0 +1,22 @@ +//======================================================================== +// +// gbasename.h +// +// Wrapper for libgen's basename() call which returns a std::string. +// This is a convenience method working around questionable behavior +// in the copy of basename() provided by libgen.h. +// +// This file is licensed under the GPLv2 or later +// +// Copyright (C) 2018 Greg Knight <lyngvi@gmail.com> +// +//======================================================================== + +#ifndef GBASENAME_H +#define GBASENAME_H + +#include <string> + +std::string gbasename(const char* input); + +#endif // ndef GBASENAME_H |