aboutsummaryrefslogtreecommitdiff
path: root/src/proone_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/proone_util.h')
-rw-r--r--src/proone_util.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/proone_util.h b/src/proone_util.h
new file mode 100644
index 0000000..5f9bcd9
--- /dev/null
+++ b/src/proone_util.h
@@ -0,0 +1,11 @@
+#if 0
+bool proone_strendsw (const char *str, const char *w) {
+ const size_t len_str = strlen(str);
+ const size_t len_w = strlen(w);
+
+ if (len_str < len_w) {
+ return false;
+ }
+ return strcmp(str + (len_str - len_w), w) == 0;
+}
+#endif