6 * stringbuilder - join lists of strings
8 * This is a small set of functions for building up strings from a list.
9 * The destination buffer is bounds-checked, the functions return failure
10 * if the concatenated strings overflow the buffer.
16 * #include <ccan/stringbuilder/stringbuilder.h>
18 * int main(int argc, char *argv[])
23 * res = stringbuilder_array(mystring, 128, "', '",
24 * argc, (const char**)argv);
26 * printf("My arguments: '%s'\n", mystring);
28 * printf("Failed to join arguments: %s\n",
31 * res = stringbuilder(mystring, 128, ", ",
32 * "This", "Is", "A", "Test");
34 * printf("My string: '%s'\n", mystring);
36 * printf("Failed to join strings: %s\n",
42 * License: CC0 (Public domain)
43 * Author: Stuart Longland <stuartl@longlandclan.yi.org>
45 int main(int argc, char *argv[])
50 if (strcmp(argv[1], "depends") == 0) {
54 if (strcmp(argv[1], "testdepends") == 0) {