s/qmail
3.3.23
Next generation secure email transport
sqmail-3.3.23
src
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
}
stralloc_readyplus
int stralloc_readyplus()
stralloc.h
stralloc_copyb
int stralloc_copyb(stralloc *, char *, unsigned int)
Definition:
stralloc_opyb.c:4
byte_copy
void byte_copy(char *, unsigned int, char *)
stralloc_catb
int stralloc_catb(stralloc *sa, char *s, unsigned int n)
Definition:
stralloc_catb.c:4
byte.h
sa
stralloc sa
Definition:
dnscname.c:9
n
unsigned n
Definition:
matchup.c:36
Generated on Sat Jan 12 2019 23:42:28 for s/qmail by
1.8.13