Lines Matching refs:str
114 string->str = (char*)malloc(SIMPLESTRING_INCR); in simplestring_init_str()
115 if(string->str) { in simplestring_init_str()
116 string->str[0] = 0; in simplestring_init_str()
143 if(string->str) { in simplestring_clear()
144 string->str[0] = 0; in simplestring_clear()
168 if(string && string->str) { in simplestring_free()
169 my_free(string->str); in simplestring_free()
195 if(!target->str) { in simplestring_addn()
205 target->str = (char*)realloc(target->str, newsize); in simplestring_addn()
207 target->size = target->str ? newsize : 0; in simplestring_addn()
210 if(target->str) { in simplestring_addn()
212 memcpy(target->str + target->len, source, add_len); in simplestring_addn()
215 target->str[target->len] = 0; /* null terminate */ in simplestring_addn()