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

#include <skalibs/bytestr.h>

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