blob: f00813f1e1a34f2416e43247f5ed44f2af423c78 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
/* ISC license. */
#include <errno.h>
#include <skalibs/stralloc.h>
int stralloc_readyplus_tuned (stralloc *sa, size_t n, size_t base, size_t a, size_t b)
{
size_t newlen = sa->len + n ;
return newlen < sa->len ?
(errno = ERANGE, 0) :
stralloc_ready_tuned(sa, newlen, base, a, b) ;
}
|