aboutsummaryrefslogtreecommitdiff
path: root/src/proone_util.h
blob: 5f9bcd95919cfe16f3923feca33a7a40351923a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
#if 0
bool proone_strendsw (const char *str, const char *w) {
    const size_t len_str = strlen(str);
    const size_t len_w = strlen(w);

    if (len_str < len_w) {
        return false;
    }
    return strcmp(str + (len_str - len_w), w) == 0;
}
#endif