s/qmail  3.3.23
Next generation secure email transport
stralloc_arts.c
Go to the documentation of this file.
1 #include "byte.h"
2 #include "str.h"
3 #include "stralloc.h"
4 
5 int stralloc_starts(stralloc *sa,char *s)
6 {
7  int len;
8  len = str_len(s);
9  return (sa->len >= len) && byte_equal(s,len,sa->s);
10 }
int stralloc_starts(stralloc *sa, char *s)
Definition: stralloc_arts.c:5
unsigned int str_len(char *)
unsigned len
Definition: matchup.c:36
stralloc sa
Definition: dnscname.c:9
#define byte_equal(s, n, t)
Definition: byte.h:11