skalibs

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

str_start.c (156B)


      1 /* ISC license. */
      2 
      3 #include <string.h>
      4 #include <skalibs/bytestr.h>
      5 
      6 int str_start (char const *s, char const *t)
      7 {
      8   return !strncmp(s, t, strlen(t)) ;
      9 }