From 9593fc545950782ed75f12f53238b07885559b2b Mon Sep 17 00:00:00 2001 From: William Casarin Date: Mon, 9 Jul 2018 22:28:25 -0700 Subject: remove ccan for now --- ccan/tal/str/_info | 59 ------------------------------------------------------ 1 file changed, 59 deletions(-) delete mode 100644 ccan/tal/str/_info (limited to 'ccan/tal/str/_info') diff --git a/ccan/tal/str/_info b/ccan/tal/str/_info deleted file mode 100644 index 3037cfd..0000000 --- a/ccan/tal/str/_info +++ /dev/null @@ -1,59 +0,0 @@ -#include "config.h" -#include -#include - -/** - * tal/str - string helper routines which use tal - * - * This is a grab bag of functions for string operations, designed to enhance - * the standard string.h; these are separated from the non-tal-needing - * string utilities in "str.h". - * - * Example: - * #include - * #include - * #include - * - * // Dumb demo program to double-linespace a file. - * int main(int argc, char *argv[]) - * { - * char *textfile; - * char **lines; - * - * if (argc > 2) - * errx(1, "Takes 0 or 1 arguments"); - * // Grab lines in file. - * textfile = grab_file(NULL, argv[1]); - * if (!textfile) - * err(1, "Failed reading %s", argv[1]); - * lines = tal_strsplit(textfile, textfile, "\n", STR_EMPTY_OK); - * - * // Join them back together with two linefeeds. - * printf("%s", tal_strjoin(textfile, lines, "\n\n", STR_TRAIL)); - * - * // Free everything, just because we can. - * tal_free(textfile); - * return 0; - * } - * - * License: BSD-MIT - * Author: Rusty Russell - */ -int main(int argc, char *argv[]) -{ - if (argc != 2) - return 1; - - if (strcmp(argv[1], "depends") == 0) { - printf("ccan/str\n"); -#ifdef TAL_USE_TALLOC - printf("ccan/tal/talloc\n"); -#else - printf("ccan/tal\n"); -#endif - printf("ccan/take\n"); - return 0; - } - - return 1; -} -- cgit v1.2.3