tim

small extendable personal assistant
git clone git://edryd.org/tim
Log | Files | Refs | LICENSE

str.h (393B)


      1 /* See LICENSE file for copyright and license details. */
      2 
      3 #define STREMPTY(s) !s || strcmp(s, "") == 0
      4 
      5 char *str_concat(char **s, int c);
      6 char **str_split(const char *s, const char a_delim, int *c);
      7 char *str_replace(char *orig, char *rep, char *with);
      8 char *str_trim(char *s);
      9 char *str_rmspaces(char *s);
     10 int strinlist(char *str, char **list, int listc);
     11 int charinstr(char c, char *str);