Searched refs:add_len (Results 1 – 2 of 2) sorted by relevance
197 void simplestring_addn(simplestring* target, const char* source, size_t add_len) { in simplestring_addn() argument204 if((SIZE_MAX - add_len) < target->len || (SIZE_MAX - add_len - 1) < target->len) { in simplestring_addn()209 if(target->len + add_len + 1 > target->size) { in simplestring_addn()211 newsize = target->len + add_len + 1; in simplestring_addn()218 if(newsize < (target->len + add_len + 1)) { in simplestring_addn()228 if(add_len) { in simplestring_addn()229 memcpy(target->str + target->len, source, add_len); in simplestring_addn()231 target->len += add_len; in simplestring_addn()
66 void simplestring_addn(simplestring* string, const char* add, size_t add_len);
Completed in 6 milliseconds