str_concat()#
Concatenate two strings into a newly allocated string.
Prototype
PUBLIC char *str_concat(
const char *str1,
const char *str2
);
Parameters
Key |
Type |
Description |
|---|---|---|
|
|
The first string to concatenate. |
|
|
The second string to concatenate. |
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