Add string-helpers.c

This commit is contained in:
Johan Malm 2020-10-09 19:46:59 +01:00
parent 51507df2e7
commit 7e55e2cd09
6 changed files with 47 additions and 54 deletions

View file

@ -0,0 +1,11 @@
#ifndef __LABWC_STRING_HELPERs_H
#define __LABWC_STRING_HELPERS_H
/**
* string_strip - strip white space left and right
* Note: this function does a left skip, so the returning pointer cannot be
* used to free any allocated memory
*/
char *string_strip(char *s);
#endif /* __LABWC_STRING_HELPERs_H */