str_concat_free()

str_concat_free()#

Concatenate two strings into a newly allocated string and free the input strings.

Prototype

PUBLIC char *str_concat_free(
    char        *str1,
    char        *str2
);
        

Parameters

Key

Type

Description

str1

char *

The first string to concatenate and free.

str2

char *

The second string to concatenate and free.


Return Value

Returns a newly allocated string containing the concatenation of str1 and str2, or NULL on failure.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples