Lines Matching refs:p
3246 const char *p = str; in ends_with() local
3249 p = str + strlen(str) - suffix_len; in ends_with()
3250 if (!strncmp(p, suffix, suffix_len)) in ends_with()
3251 return p; in ends_with()
3259 char line[BUFSIZ], *p; in read_script_info() local
3267 p = skip_spaces(line); in read_script_info()
3268 if (strlen(p) == 0) in read_script_info()
3270 if (*p != '#') in read_script_info()
3272 p++; in read_script_info()
3273 if (strlen(p) && *p == '!') in read_script_info()
3276 p = skip_spaces(p); in read_script_info()
3277 if (strlen(p) && p[strlen(p) - 1] == '\n') in read_script_info()
3278 p[strlen(p) - 1] = '\0'; in read_script_info()
3280 if (!strncmp(p, "description:", strlen("description:"))) { in read_script_info()
3281 p += strlen("description:"); in read_script_info()
3282 desc->half_liner = strdup(skip_spaces(p)); in read_script_info()
3286 if (!strncmp(p, "args:", strlen("args:"))) { in read_script_info()
3287 p += strlen("args:"); in read_script_info()
3288 desc->args = strdup(skip_spaces(p)); in read_script_info()
3420 char line[BUFSIZ], *p; in check_ev_match() local
3432 p = skip_spaces(line); in check_ev_match()
3433 if (*p == '#') in check_ev_match()
3436 while (strlen(p)) { in check_ev_match()
3437 p = strstr(p, "-e"); in check_ev_match()
3438 if (!p) in check_ev_match()
3441 p += 2; in check_ev_match()
3442 p = skip_spaces(p); in check_ev_match()
3443 len = strcspn(p, " \t"); in check_ev_match()
3447 snprintf(evname, len + 1, "%s", p); in check_ev_match()
3595 char *p; in has_required_arg() local
3605 for (p = desc->args; *p; p++) in has_required_arg()
3606 if (*p == '<') in has_required_arg()