9 #include "coap_config.h" 26 memset(s, 0,
sizeof(
str));
27 s->
s = ((
unsigned char *)s) +
sizeof(
str);
str * coap_new_string(size_t size)
Returns a new string object with at least size bytes storage allocated.
static void * coap_malloc(size_t size)
Wrapper function to coap_malloc_type() for backwards compatibility.
static void coap_free(void *object)
Wrapper function to coap_free_type() for backwards compatibility.
void coap_delete_string(str *s)
Deletes the given string and releases any memory allocated.