#include <string.h>
Go to the source code of this file.
|
#define | COAP_SET_STR(st, l, v) { (st)->length = (l), (st)->s = (v); } |
|
#define COAP_SET_STR |
( |
|
st, |
|
|
|
l, |
|
|
|
v |
|
) |
| { (st)->length = (l), (st)->s = (v); } |
Definition at line 19 of file str.h.
void coap_delete_string |
( |
str * |
| ) |
|
Deletes the given string and releases any memory allocated.
Definition at line 31 of file str.c.
str* coap_new_string |
( |
size_t |
size | ) |
|
Returns a new string object with at least size bytes storage allocated.
The string must be released using coap_delete_string();
Definition at line 17 of file str.c.