Lines Matching defs:p
53 char *p;
57 for (p = str; *p != NULL; p++) {
58 if (isspace(*p)) {
59 *p = ' ';
62 p--;
63 while (p >= str && (isspace(*p) || *p == ';'))
64 *p-- = NULL;
76 char *p;
78 for (p = str; *p != NULL; p++)
80 p--;
81 while (p >= str && isspace(*p))
82 *p-- = NULL;
93 char *p;
95 for (p = str; *p != NULL; p++) {
96 *p = tolower(*p);
132 in_string_set(char *p, char *set)
137 errlog(BEGIN, "in_string_set( p = \"%s\", set = \"%s\") {", p, set);
148 if (strcmp(p, set) == 0) {
164 strend(char *p)
167 while (*p)
168 p++;
169 return (p);
173 lastspace(char *p)
177 q = strend(p);
179 while (q >= p && isspace(*q))
189 skipb(char *p)
191 while (*p && isspace(*p))
192 p++;
193 return (p);
201 nextb(char *p)
203 while (*p && !isspace(*p))
204 p++;
205 return (p);
213 skipsep(char *p)
216 errlog(VERBOSE, "p (in) = %s", p);
217 while (*p && !(isalnum(*p) || *p == '_' || *p == '$'))
218 p++;
219 errlog(VERBOSE, "p (out) = %s", p);
221 return (p);
229 nextsep(char *p)
232 errlog(VERBOSE, "p (in) = %s", p);
233 while (*p && isalnum(*p) || *p == '_' || *p == '$')
234 p++;
235 errlog(VERBOSE, "p (out) = %s", p);
237 return (p);
244 nextsep2(char *p)
247 errlog(VERBOSE, "p (in) = %s", p);
248 while (*p && isalnum(*p) || *p == '_' || *p == '$' || *p == '.')
249 p++;
250 errlog(VERBOSE, "p (out) = %s", p);
252 return (p);
261 char *p;
264 p = strrchr(name, '/');
265 while (p != NULL && *(p+1) == NULL) {
267 *p = NULL;
268 p = strrchr(name, '/');
270 (void) strlcpy(basename, p? p+1: name, MAXLINE);
271 if ((p = strstr(basename, ".c")) != NULL) {
272 *p = NULL;
373 compare(const void *p, const void *q)
375 return (strcmp((char *)(*(char **)p), (char *)(*(char **)q)));