Searched refs:add_len (Results 1 – 2 of 2) sorted by relevance
196 void simplestring_addn(simplestring* target, const char* source, size_t add_len) { in simplestring_addn() argument203 if((SIZE_MAX - add_len) < target->len || (SIZE_MAX - add_len - 1) < target->len) { in simplestring_addn()208 if(target->len + add_len + 1 > target->size) { in simplestring_addn()210 newsize = target->len + add_len + 1; in simplestring_addn()217 if(newsize < (target->len + add_len + 1)) { in simplestring_addn()227 if(add_len) { in simplestring_addn()228 memcpy(target->str + target->len, source, add_len); in simplestring_addn()230 target->len += add_len; in simplestring_addn()
66 void simplestring_addn(simplestring* string, const char* add, size_t add_len);
Completed in 5 milliseconds