rcutils  master
C API providing common utilities and data structures.
Functions
concat.h File Reference
#include "rcutils/visibility_control.h"

Go to the source code of this file.

Functions

char * rcutils_concat (const char *lhs, const char *rhs, const char *delimiter)
 Return a newly allocated string that contains lhs, followed by delimiter, followed by rhs. More...
 

Function Documentation

◆ rcutils_concat()

char* rcutils_concat ( const char *  lhs,
const char *  rhs,
const char *  delimiter 
)

Return a newly allocated string that contains lhs, followed by delimiter, followed by rhs.

This function allocates memory and returns it to the caller. It is up to the caller to release the memory once it is done with it by calling free.

Returns
char * concatenated string on success NULL on invalid arguments NULL on failure