str_rchr.c (175B)
1 /* ISC license. */ 2 3 #include <string.h> 4 #include <skalibs/bytestr.h> 5 6 size_t str_rchr (char const *s, int c) 7 { 8 char *p = strrchr(s, c) ; 9 return p ? p - s : strlen(s) ; 10 } 11
skalibsMirror/fork of https://skarnet.org/software/skalibs/ | |
git clone https://ccx.te2000.cz/git/skalibs | |
Log | Files | Refs | README | LICENSE |