|
libcfe
0.12.1
some useful C-functions
|
#include "config.h"#include "strcat2.h"#include <stdlib.h>#include <stddef.h>#include <stdarg.h>#include "len.h"Go to the source code of this file.
Functions | |
| char * | strcat2 (const char *delim, unsigned int n,...) |
| char* strcat2 | ( | const char * | delim, |
| unsigned int | n, | ||
| ... | |||
| ) |
Combines multiple strings into one string. The inputed strings can be separated by a delimiter. The return value is a pointer to a malloc'd area containing the combined string ('\0' terminated).
| [in] | delim | Pointer to the delimiter string ('\0' terminated), or NULL if no delimiter is wanted. |
| [in] | n | Number of strings to process (number of following arguments) |
| [in] | ... | Pointer to a string ('\0' terminated). NULL will omit this parameter and the preceding delimiter. An empty string (first character is \0) will print only the delimiter. |