summaryrefslogtreecommitdiff
path: root/src/libstddjb/case_startb.c
blob: 42e12f2159132da2156b1d8cb09e198705006f40 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* ISC license. */

#include <string.h>
#include <strings.h>
#include <skalibs/bytestr.h>

int case_startb (char const *s, size_t slen, char const *t)
{
  size_t tlen = strlen(t) ;
  return slen < tlen ? 0 : !strncasecmp(s, t, tlen) ;
}