From b6b86b40135b448c91177984a8d25518a66d7cdc Mon Sep 17 00:00:00 2001 From: Ian C Date: Mon, 16 May 2016 11:59:26 +0100 Subject: 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. --- src/util.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/util.h') 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. */ -- cgit v1.2.3