ucspi-ssl
0.99e
TLS encryption for IPv6 communication
ucspi-ssl-0.99e
src
stralloc_catb.c
Go to the documentation of this file.
1
/* Public domain. */
2
3
#include "
stralloc.h
"
4
#include "
byte.h
"
5
6
int
stralloc_catb
(stralloc *sa,
const
char
*s,
unsigned
int
n)
7
{
8
if
(!sa->s)
return
stralloc_copyb
(sa,s,n);
9
if
(!
stralloc_readyplus
(sa,n + 1))
return
0;
10
byte_copy
(sa->s + sa->len,n,s);
11
sa->len += n;
12
sa->s[sa->len] =
'Z'
;
/* ``offensive programming'' */
13
return
1;
14
}
byte_copy
void byte_copy(void *, unsigned int, const void *)
stralloc.h
stralloc_catb
int stralloc_catb(stralloc *sa, const char *s, unsigned int n)
Definition:
stralloc_catb.c:6
stralloc_readyplus
int stralloc_readyplus(stralloc *, unsigned int)
byte.h
stralloc_copyb
int stralloc_copyb(stralloc *, const char *, unsigned int)
Definition:
stralloc_opyb.c:6
Generated on Wed Jul 11 2018 22:50:46 for ucspi-ssl by
1.8.13