smpp_realloc

March 26, 2020 Contributors

Name

smpp_realloc — Free message (*mem), and realloc new memtype_smpp memory

Synopsis

#include "modules/mobility/smpp/smpp_util.h"

| void * **smpp_realloc** ( | mem, |   |
|   | size); |   |

void * <var class="pdparam">mem</var>;
unsigned int <var class="pdparam">size</var>;

Description

**Configuration Change. ** This feature is available starting from Momentum 3.2.

Free the memory associated with mem and realloc new memtype_smpp memory specifying the size.

Parameters

mem

The buffer to be reallocated.

size

The new memory size.

Return Values

On success this function returns a pointer to the allocated memory; on failure NULL is returned.

Threading

It is legal to call this function in any thread.

See Also

SMPP Functions , smpp_malloc and Memory Functions