X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/5dd6771b28c257af405d7248639ed0e3bcdce38b..e5afa1df87c24d49f0572ff903d4b0ee2eb803a8:/sbr/concat.c diff --git a/sbr/concat.c b/sbr/concat.c index 82979f5a..234d1751 100644 --- a/sbr/concat.c +++ b/sbr/concat.c @@ -12,8 +12,13 @@ #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 (char *s1, ...) +concat (const char *s1, ...) { char *cp, *dp, *sp; size_t len;