aboutsummaryrefslogtreecommitdiff
path: root/include/str.h
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-06-09 08:12:02 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-06-09 08:12:02 -0400
commite4f615faf36e0163a5b550df9916a1e6198770b9 (patch)
tree13c54155e33b228a5a3661a0aea859bfd2de4616 /include/str.h
parent3357f87a5efe478be2433787c29de640dc21b33d (diff)
downloadstasis-e4f615faf36e0163a5b550df9916a1e6198770b9.tar.gz
Address shortcomings and bugs flushed out by unit tests
Diffstat (limited to 'include/str.h')
-rw-r--r--include/str.h27
1 files changed, 0 insertions, 27 deletions
diff --git a/include/str.h b/include/str.h
index 8018cc0..895b8cc 100644
--- a/include/str.h
+++ b/include/str.h
@@ -51,33 +51,6 @@ int endswith(const char *sptr, const char *pattern);
void strchrdel(char *sptr, const char *chars);
/**
- * Find the integer offset of the first occurrence of `ch` in `sptr`
- *
- * ~~~{.c}
- * char buffer[255];
- * char string[] = "abc=123";
- * long int separator_offset = strchroff(string, '=');
- * for (long int i = 0; i < separator_offset); i++) {
- * buffer[i] = string[i];
- * }
- * ~~~
- *
- * @param sptr string to scan
- * @param ch character to find
- * @return offset to character in string, or 0 on failure
- */
-long int strchroff(const char *sptr, int ch);
-
-/**
- * This function scans `sptr` from right to left removing any matches to `suffix`
- * from the string.
- *
- * @param sptr string to be modified
- * @param suffix string to be removed from `sptr`
- */
-void strdelsuffix(char *sptr, const char *suffix);
-
-/**
* Split a string by every delimiter in `delim` string.
*
* Callee should free memory using `GENERIC_ARRAY_FREE()`