diff options
| author | _ov4 <ov4@ov4.org> | 2026-09-03 05:18:46 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-09-03 05:18:46 +0000 |
| commit | 065ca31d261e55b26bcd4ddc5877b8a0ac9e77b7 (patch) | |
| tree | e13a728c0fa0295ee84014ac5759b6aecd897276 /include | |
| parent | 7b27a3efde5d19c592ce674da26fdf0a6ef628a9 (diff) | |
safe_str
Diffstat (limited to 'include')
| -rw-r--r-- | include/util/string.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/util/string.h b/include/util/string.h index 85aae8d..f5e8ef9 100644 --- a/include/util/string.h +++ b/include/util/string.h @@ -12,5 +12,6 @@ namespace ov4 void string2argv(const std::vector<std::string> * const s, char **argv); void argv2string(std::vector<std::string> *s, const char * const * argv); +std::string safe_str(const char *s, const char *fallback = ""); } |
