Lines Matching refs:str
116 string->str = (char*)emalloc(SIMPLESTRING_INCR); in simplestring_init_str()
117 if(string->str) { in simplestring_init_str()
118 string->str[0] = 0; in simplestring_init_str()
145 if(string->str) { in simplestring_clear()
146 string->str[0] = 0; in simplestring_clear()
170 if(string && string->str) { in simplestring_free()
171 my_free(string->str); in simplestring_free()
201 if(!target->str) { in simplestring_addn()
223 target->str = (char*)erealloc(target->str, newsize); in simplestring_addn()
225 target->size = target->str ? newsize : 0; in simplestring_addn()
228 if(target->str) { in simplestring_addn()
230 memcpy(target->str + target->len, source, add_len); in simplestring_addn()
233 target->str[target->len] = 0; /* null terminate */ in simplestring_addn()