Lines Matching defs:new_string
1267 * \param new_string pointer to the data_string to construct. Cannot be
1277 data_string_new(struct data_string *new_string,
1283 if (new_string == NULL) {
1284 log_error("data_string_new: new_string cannot be NULL %s(%d)",
1295 memset(new_string, 0, sizeof (struct data_string));
1302 if (!buffer_allocate(&(new_string->buffer), copy_len + 1, MDL)) {
1309 memcpy(new_string->buffer->data, src, copy_len);
1313 new_string->buffer->data[copy_len] = 0;
1317 new_string->data = new_string->buffer->data;
1318 new_string->len = copy_len;
1319 new_string->terminated = 1;