s/qmail  3.3.23
Next generation secure email transport
stralloc_catb.c
Go to the documentation of this file.
1 #include "stralloc.h"
2 #include "byte.h"
3 
4 int stralloc_catb(stralloc *sa,char *s,unsigned int n)
5 {
6  if (!sa->s) return stralloc_copyb(sa,s,n);
7  if (!stralloc_readyplus(sa,n + 1)) return 0;
8  byte_copy(sa->s + sa->len,n,s);
9  sa->len += n;
10  sa->s[sa->len] = 'Z'; /* ``offensive programming'' */
11  return 1;
12 }
int stralloc_readyplus()
int stralloc_copyb(stralloc *, char *, unsigned int)
Definition: stralloc_opyb.c:4
void byte_copy(char *, unsigned int, char *)
int stralloc_catb(stralloc *sa, char *s, unsigned int n)
Definition: stralloc_catb.c:4
stralloc sa
Definition: dnscname.c:9
unsigned n
Definition: matchup.c:36