Lines Matching refs:s
48 int strtobool(const char *s, bool *res) in strtobool() argument
50 if (!s) in strtobool()
53 switch (s[0]) { in strtobool()
66 switch (s[1]) { in strtobool()
139 char *strim(char *s) in strim() argument
144 size = strlen(s); in strim()
146 return s; in strim()
148 end = s + size - 1; in strim()
149 while (end >= s && isspace(*end)) in strim()
153 return skip_spaces(s); in strim()
159 void remove_spaces(char *s) in remove_spaces() argument
161 char *d = s; in remove_spaces()
166 } while ((*s++ = *d++)); in remove_spaces()
177 char *strreplace(char *s, char old, char new) in strreplace() argument
179 for (; *s; ++s) in strreplace()
180 if (*s == old) in strreplace()
181 *s = new; in strreplace()
182 return s; in strreplace()