Searched refs:add_len (Results 1 – 2 of 2) sorted by relevance
198 void simplestring_addn(simplestring* target, const char* source, size_t add_len) { in simplestring_addn() argument205 if((SIZE_MAX - add_len) < target->len || (SIZE_MAX - add_len - 1) < target->len) { in simplestring_addn()210 if(target->len + add_len + 1 > target->size) { in simplestring_addn()212 newsize = target->len + add_len + 1; in simplestring_addn()219 if(newsize < (target->len + add_len + 1)) { in simplestring_addn()229 if(add_len) { in simplestring_addn()230 memcpy(target->str + target->len, source, add_len); in simplestring_addn()232 target->len += add_len; in simplestring_addn()
66 void simplestring_addn(simplestring* string, const char* add, size_t add_len);
Completed in 9 milliseconds