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()
132 char *strim(char *s) in strim() argument
137 size = strlen(s); in strim()
139 return s; in strim()
141 end = s + size - 1; in strim()
142 while (end >= s && isspace(*end)) in strim()
146 return skip_spaces(s); in strim()
157 char *strreplace(char *s, char old, char new) in strreplace() argument
159 for (; *s; ++s) in strreplace()
160 if (*s == old) in strreplace()
161 *s = new; in strreplace()
162 return s; in strreplace()