X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/fccdde7866bf77774afabfdb32370f1123dac2cc..3ab1e9323e964d5377952a2b666ce91bab39c45a:/sbr/concat.c diff --git a/sbr/concat.c b/sbr/concat.c index f5cf1aea..234d1751 100644 --- a/sbr/concat.c +++ b/sbr/concat.c @@ -12,6 +12,11 @@ #include +/* concat returns a non-NULL malloc'd pointer to the catenation of the + * argument strings less their NUL terminators other than the last. The + * arguments are terminated by a NULL. + * + * Example: concat("abc", "def", "", "g", NULL) returns "abcdefg". */ char * concat (const char *s1, ...) {