diff options
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. */ |