diff options
author | Ian C <ianc@noddybox.co.uk> | 2016-05-16 11:59:26 +0100 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2016-05-16 11:59:26 +0100 |
commit | b6b86b40135b448c91177984a8d25518a66d7cdc (patch) | |
tree | 65a56c0dc9a8ff12fb87401b333a6beb5a2e9107 /src/util.h | |
parent | 5e6a1c3434b96ea16485b160c25732df3b00b2b8 (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.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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. */ |