blob: f1bdc0a39c6837cb7c13508826acda8d464368d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/* ISC license. */
#include <sys/types.h>
#include <string.h>
#include <skalibs/stralloc.h>
int stralloc_catb (stralloc *sa, char const *s, size_t n)
{
if (!stralloc_readyplus(sa, n)) return 0 ;
memmove(sa->s + sa->len, s, n) ;
sa->len += n ;
return 1 ;
}
|