libcoap  4.1.1
 All Data Structures Files Functions Variables Typedefs Macros Groups Pages
Functions
str.c File Reference
#include "config.h"
#include <stdio.h>
#include "debug.h"
#include "mem.h"
#include "str.h"

Go to the source code of this file.

Functions

strcoap_new_string (size_t size)
 Returns a new string object with at least size bytes storage allocated. More...
 
void coap_delete_string (str *s)
 Deletes the given string and releases any memory allocated. More...
 

Function Documentation

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.