Lines Matching refs:new_str
158 char *new_str; in realloc_strncat() local
166 new_str = malloc(old_len + len + 1); in realloc_strncat()
167 if (new_str == NULL) in realloc_strncat()
170 memcpy(new_str, *str, old_len); in realloc_strncat()
171 memcpy(new_str + old_len, append, len); in realloc_strncat()
172 new_str[old_len + len] = '\0'; in realloc_strncat()
174 *str = new_str; in realloc_strncat()
180 char *new_str; in realloc_strcat() local
188 new_str = malloc(old_len + strlen(append) + 1); in realloc_strcat()
189 if (new_str == NULL) in realloc_strcat()
192 memcpy(new_str, *str, old_len); in realloc_strcat()
193 strcpy(new_str + old_len, append); in realloc_strcat()
195 *str = new_str; in realloc_strcat()