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

#include <sys/types.h>
#include <string.h>
#include <skalibs/bytestr.h>

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