Skip to main content

smpp_wrap_in_string_with_len

Last updated March 2020

Name

smpp_wrap_in_string_with_len — Wrap a char string into a string object

Synopsis

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

| string * **smpp_wrap_in_string_with_len** ( | c, |   | |   | len); |   |

const char * <var class="pdparam">c</var>; int <var class="pdparam">len</var>;

Description

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

Wrap a char string into a string object.

The returned string object must be freed by calling smpp_free_string_and_buffer.

Parameters

c

The input character string

len

The length of the input string.

Return Values

The output string. For a description of this data type see “string”.

Threading

It is legal to call this function in any thread.

See Also

Was this page helpful?