suitcase

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

stralloc_arts.c (320B)


      1 #include "byte.h"
      2 #include "str.h"
      3 #include "ta_stralloc/stralloc.h"
      4 
      5 /* Whose idea was calling this 'arts.c'?! Daniel? What was happening? Some 15ch filename limit? */
      6 
      7 int stralloc_starts(stralloc *sa, char *s) // PTYPE
      8 {
      9   unsigned int len;
     10   len = str_len(s);
     11   return (sa->len >= len) && byte_equal(s,len,sa->s);
     12 }