summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
cbb9911)
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
*
* Example:
* #include <ccan/tal/str/str.h>
*
* Example:
* #include <ccan/tal/str/str.h>
- * #include <ccan/grab_file/grab_file.h>
+ * #include <ccan/tal/grab_file/grab_file.h>
* #include <err.h>
*
* // Dumb demo program to double-linespace a file.
* #include <err.h>
*
* // Dumb demo program to double-linespace a file.
* char **lines;
*
* // Grab lines in file.
* char **lines;
*
* // Grab lines in file.
- * textfile = grab_file(NULL, argv[1], NULL);
+ * textfile = grab_file(NULL, argv[1]);
* if (!textfile)
* err(1, "Failed reading %s", argv[1]);
* lines = tal_strsplit(textfile, textfile, "\n", STR_EMPTY_OK);
* if (!textfile)
* err(1, "Failed reading %s", argv[1]);
* lines = tal_strsplit(textfile, textfile, "\n", STR_EMPTY_OK);