aboutsummaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 6f70a8d..4faec6f 100644
--- a/src/util.h
+++ b/src/util.h
@@ -54,10 +54,19 @@ char *RemoveNL(char *p);
/* Remove white space from the start and end of a string.
+ Characters from the front are removed by memmov()ing the string, so the
+ returned point is always the same as the passed 'p'.
*/
char *Trim(char *p);
+/* Remove passed characters from the start and end of a string.
+ Characters from the front are removed by memmov()ing the string, so the
+ returned point is always the same as the passed 'p'.
+*/
+char *TrimChars(char *p, const char *chars);
+
+
/* Compare a string, but case insensitive. Returns TRUE for match, otherwise
FALSE.
*/