diff options
Diffstat (limited to 'src/strops.cpp')
| -rw-r--r-- | src/strops.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/strops.cpp b/src/strops.cpp index 208aaed..6179f82 100644 --- a/src/strops.cpp +++ b/src/strops.cpp @@ -4,6 +4,11 @@ #include "strops.hpp" +bool strops_prefix(const char *pre, const char *str) +{ + return strncmp(pre, str, strlen(pre)) == 0; +} + size_t strops_copy(char *dst, const char *src, size_t size) { size_t srclen; |
