mg_string_make2

Constructs a string given its length (in bytes) and contents.

A new buffer of will be allocated and the given data will be copied there.

extern (C) @safe @nogc pure nothrow
mg_string_make2
(
uint len
,
const char* data
)

Parameters

data char*

The string contents.

Return: A pointer to the newly constructed mg_string object or NULL if an error occurred.

Meta