Lines Matching defs:suffix
426 char *strnappend(const char *s, const char *suffix, size_t b) {
430 if (!s && !suffix)
434 return strndup(suffix, b);
436 if (!suffix)
440 assert(suffix);
451 memcpy(r+a, suffix, b);
457 char *strappend(const char *s, const char *suffix) {
458 return strnappend(s, suffix, suffix ? strlen(suffix) : 0);
1065 bool dirent_is_file_with_suffix(const struct dirent *de, const char *suffix) {
1076 return endswith(de->d_name, suffix);