aboutsummaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2016-05-16 11:59:26 +0100
committerIan C <ianc@noddybox.co.uk>2016-05-16 11:59:26 +0100
commitb6b86b40135b448c91177984a8d25518a66d7cdc (patch)
tree65a56c0dc9a8ff12fb87401b333a6beb5a2e9107 /src/util.h
parent5e6a1c3434b96ea16485b160c25732df3b00b2b8 (diff)
SPC700 additions.
* First completed version of SPC700. Very untested. * Fixed an oddity in the parser regarding quoted values not ending with a separator. These values now appear unquoted with the additional text included in the same argument.
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.
*/