]> git.ozlabs.org Git - ccan/blobdiff - ccan/grab_file/grab_file.h
modules: update documentation examples so they compile under ccanlint.
[ccan] / ccan / grab_file / grab_file.h
index 5f7e37c6de004a634d04441dcdb031b197581cfd..b2bd31ada26108d0c5a179b07c744bcdc26f692e 100644 (file)
  * byte after the end of the content will always be NUL.
  *
  * Example:
  * byte after the end of the content will always be NUL.
  *
  * Example:
+ *     #include <ccan/str_talloc/str_talloc.h>
+ *     #include <ccan/talloc/talloc.h>
+ *     ...
  *     // Return all of standard input, as lines.
  *     // Return all of standard input, as lines.
- *     char **read_as_lines(void)
+ *     static char **read_stdin_as_lines(void)
  *     {
  *             char **lines, *all;
  *
  *     {
  *             char **lines, *all;
  *
@@ -42,7 +45,7 @@ void *grab_fd(const void *ctx, int fd, size_t *size);
  *
  * Example:
  *     // Return all of a given file, as lines.
  *
  * Example:
  *     // Return all of a given file, as lines.
- *     char **read_as_lines(const char *filename)
+ *     static char **read_file_as_lines(const char *filename)
  *     {
  *             char **lines, *all;
  *
  *     {
  *             char **lines, *all;
  *