![]() |
![]()
| ![]() |
![]()
NAMEstracat - concatenate many strings into an allocated memory block SYNOPSIS#include <publib.h> char *stracat(const char *s, ...); DESCRIPTIONstracat will allocate a block of memory with malloc and concatenate all arguments strings into this block. The user is supposed to free the returned block. The end of the argument list is signalled by a null pointer. RETURN VALUEstracat returns a pointer to the allocated block, or NULL if it could not be allocated. EXAMPLETo concatenate "hello, " and "world", one might say the following.
SEE ALSOpublib(3), strcat(3) AUTHORLars Wirzenius (lars.wirzenius@helsinki.fi)
|