Home | History | Annotate | Download | only in camera

Lines Matching refs:str_buf

128 _append_string(char** str_buf, size_t* str_buf_size, const char* str)
130 const size_t offset = (*str_buf != NULL) ? strlen(*str_buf) : 0;
134 if (*str_buf == NULL) {
144 char* new_buf = (char*)realloc(*str_buf, required_mem);
150 *str_buf = new_buf;
153 memcpy(*str_buf + offset, str, append_bytes);