Lines Matching refs:str
115 string->str = (char*)malloc(SIMPLESTRING_INCR); in simplestring_init_str()
116 if(string->str) { in simplestring_init_str()
117 string->str[0] = 0; in simplestring_init_str()
144 if(string->str) { in simplestring_clear()
145 string->str[0] = 0; in simplestring_clear()
169 if(string && string->str) { in simplestring_free()
170 my_free(string->str); in simplestring_free()
200 if(!target->str) { in simplestring_addn()
222 target->str = (char*)realloc(target->str, newsize); in simplestring_addn()
224 target->size = target->str ? newsize : 0; in simplestring_addn()
227 if(target->str) { in simplestring_addn()
229 memcpy(target->str + target->len, source, add_len); in simplestring_addn()
232 target->str[target->len] = 0; /* null terminate */ in simplestring_addn()