Lines Matching refs:s
112 void badnum(const char *s) in badnum() argument
114 sh_error(illnum, s); in badnum()
120 intmax_t atomax(const char *s, int base) in atomax() argument
126 r = strtoimax(s, &p, base); in atomax()
129 badnum(s); in atomax()
135 if (p == s && base) in atomax()
136 badnum(s); in atomax()
142 badnum(s); in atomax()
147 intmax_t atomax10(const char *s) in atomax10() argument
149 return atomax(s, 10); in atomax10()
158 number(const char *s) in number() argument
160 intmax_t n = atomax10(s); in number()
163 badnum(s); in number()
191 single_quote(const char *s) { in single_quote() argument
200 len = strchrnul(s, '\'') - s; in single_quote()
205 q = mempcpy(q, s, len); in single_quote()
207 s += len; in single_quote()
211 len = strspn(s, "'"); in single_quote()
218 q = mempcpy(q, s, len); in single_quote()
220 s += len; in single_quote()
223 } while (*s); in single_quote()
254 findstring(const char *s, const char *const *array, size_t nmemb) in findstring() argument
256 return bsearch(&s, array, nmemb, sizeof(const char *), pstrcmp); in findstring()