From ad098559d2ee9ed3c176be7d33e6583a573ffc96 Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Wed, 19 Oct 2016 18:44:58 +0100 Subject: [PATCH] Add comment describing concat(). --- sbr/concat.c | 5 +++++ 1 file changed, 5 insertions(+) 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, ...) { -- 2.56.0