Lines Matching refs:suffix
44 char *suffix;
79 (void) fputs(gettext("Usage: basename string [ suffix ]\n"),
85 suffix = (argc == 2) ? NULL : argv[2];
106 if (suffix == NULL) {
113 * if a suffix is present and is not the same as the remaining
117 if (strcmp(string, suffix) != 0) {
118 p = string + strlen(string) - strlen(suffix);
119 if (strcmp(p, suffix) == 0)
128 suf_len = 6 + strlen(suffix) + 1 + 1; /* \(.*\)suffix$ */
139 (void) strcpy(suf_pat + 6, suffix);