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