]> diplodocus.org Git - nmh/blobdiff - sbr/concat.c
test-nocreate: Don't use run_test and run_prog together.
[nmh] / sbr / concat.c
index f5cf1aea816478e5effcf71546d6551f09d984ae..234d17519987fc676c202ec91d2fa96eba7ee8b2 100644 (file)
 #include <h/utils.h>
 
 
+/* 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, ...)
 {