20 for(j=0;isspace(str[j]);j++);
23 for(i=0;str[j];i++,j++)
30 else result=strlen(str);
43 for(i=strlen(str);isspace(str[i-1]);i--)
60 for(i=0;isspace(str[i]);i++);
63 if(!isspace(str[i])||!isspace(str[j-1]))
90 for(i=0;str[i]&&!result;i++)
113 for(i=0,err=0;aux[i]&&!err;i++)
150 for(i=0,err=0;aux[i]&&!err;i++)
void listDelete(List list)
Deletes a list.
int charElem(char c, const char *str)
Checks if there is an occurrence of a specific character in a string.
int listInsertLst(List list, void *value)
Inserts an element at the end of a list.
int trimStart(char *str)
Removes leading whitespaces of a string.
int listMap(List list, void(*fun)(void *))
Applies a function to the elements of a list.
int trimEnd(char *str)
Removes trailing whitespaces of a string.
Implementation of functions to manipulate strings.
List strSep(const char *str, const char *delim)
Splits a string.
List words(const char *str)
Given a string, computes the list of words that the string contains.
int trim(char *str)
Removes leading and trailing whitespaces of a string, as well as consecutive whitespaces in the middl...
List newList(void)
Creates a list.