Added trim tests

This commit is contained in:
James Booth
2012-04-26 23:13:10 +01:00
parent 04e021eb36
commit 308d7fa945
2 changed files with 68 additions and 0 deletions

3
util.c
View File

@@ -38,6 +38,9 @@ void get_time(char *thetime)
char *trim(char *str)
{
if (str == NULL)
return NULL;
char *end;
while (isspace(*str))