X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fstr_talloc%2F_info;fp=ccan%2Fstr_talloc%2F_info;h=0000000000000000000000000000000000000000;hp=bcba699caf68728b7a7322123cef499424735f35;hb=7207c7822bbe0deef98aa71a5b2e721be370b446;hpb=4c2395707d92b5891564adcc6ac2f8acb4d61f90 diff --git a/ccan/str_talloc/_info b/ccan/str_talloc/_info deleted file mode 100644 index bcba699c..00000000 --- a/ccan/str_talloc/_info +++ /dev/null @@ -1,53 +0,0 @@ -#include -#include -#include "config.h" - -/** - * str_talloc - string helper routines which use talloc - * - * This is a grab bag of fnctions for string operations, designed to enhance - * the standard string.h; these are separated from the non-talloc-needing - * string utilities in "str.h". - * - * Example: - * #include - * #include - * #include - * #include - * - * // Dumb demo program to double-linespace a file. - * int main(int argc, char *argv[]) - * { - * char *textfile; - * char **lines; - * - * // Grab lines in file. - * textfile = grab_file(NULL, argv[1], NULL); - * if (!textfile) - * err(1, "Failed reading %s", argv[1]); - * lines = strsplit(textfile, textfile, "\n"); - * - * // Join them back together with two linefeeds. - * printf("%s", strjoin(textfile, lines, "\n\n")); - * - * // Free everything, just because we can. - * talloc_free(textfile); - * return 0; - * } - * - * License: LGPL (v2.1 or any later version) - * Author: Rusty Russell - */ -int main(int argc, char *argv[]) -{ - if (argc != 2) - return 1; - - if (strcmp(argv[1], "depends") == 0) { - printf("ccan/str\n"); - printf("ccan/talloc\n"); - return 0; - } - - return 1; -}