Searched refs:suffix_len (Results 1 – 5 of 5) sorted by relevance
24 const int suffix_len = strlen(suffix); in dev_name_ends_with() local26 if (suffix_len > name_len) in dev_name_ends_with()29 return strcmp(name + (name_len - suffix_len), suffix) == 0; in dev_name_ends_with()
96 unsigned int len, suffix_len; in strends() local99 suffix_len = strlen(suffix); in strends()100 if (len < suffix_len) in strends()102 return streq(str + len - suffix_len, suffix); in strends()
1221 unsigned int len, suffix_len; in strcmp_suffix() local1224 suffix_len = strlen(suffix); in strcmp_suffix()1225 if (len <= suffix_len) in strcmp_suffix()1227 return strcmp(str + len - suffix_len, suffix); in strcmp_suffix()
1928 size_t suffix_len, name_len; in hidinput_allocate() local1983 suffix_len = strlen(suffix); in hidinput_allocate()1984 if ((name_len < suffix_len) || in hidinput_allocate()1985 strcmp(hid->name + name_len - suffix_len, suffix)) { in hidinput_allocate()
3208 size_t suffix_len = strlen(suffix); in ends_with() local3211 if (strlen(str) > suffix_len) { in ends_with()3212 p = str + strlen(str) - suffix_len; in ends_with()3213 if (!strncmp(p, suffix, suffix_len)) in ends_with()