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

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

int str_start (char const *s, char const *t)
{
  return !strncmp(s, t, strlen(t)) ;
}