skalibs

Mirror/fork of https://skarnet.org/software/skalibs/
git clone https://ccx.te2000.cz/git/skalibs
Log | Files | Refs | README | LICENSE

case_startb.c (238B)


      1 /* ISC license. */
      2 
      3 #include <string.h>
      4 #include <strings.h>
      5 
      6 #include <skalibs/bytestr.h>
      7 
      8 int case_startb (char const *s, size_t slen, char const *t)
      9 {
     10   size_t tlen = strlen(t) ;
     11   return slen < tlen ? 0 : !strncasecmp(s, t, tlen) ;
     12 }