struct te_string

Overview

TE string type. More…

#include <te_string.h>

struct te_string {
    // fields

    char* ptr;
    size_t size;
    size_t len;
    bool ext_buf;
    te_string_free_func* free_func;
};

Detailed Documentation

TE string type.

Fields

char* ptr

Pointer to the buffer

size_t size

Size of the buffer

size_t len

Length of the string

bool ext_buf

If true, buffer is supplied by user and should not be reallocated or freed.

te_string_free_func* free_func

If set, will be called from te_string_free() instead of default actions