libcoap  4.0.3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator 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.
void coap_delete_string (str *s)
 Deletes the given string and releases any memory allocated.

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.