Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
ccan
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mirror
ccan
Commits
a7b28faf
Commit
a7b28faf
authored
Aug 19, 2014
by
Rusty Russell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tal/str: use tal/grab_file not grab_file in example.
Signed-off-by:
Rusty Russell
<
rusty@rustcorp.com.au
>
parent
cbb99113
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ccan/tal/str/_info
ccan/tal/str/_info
+2
-2
No files found.
ccan/tal/str/_info
View file @
a7b28faf
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
*
*
* Example:
* Example:
* #include <ccan/tal/str/str.h>
* #include <ccan/tal/str/str.h>
* #include <ccan/grab_file/grab_file.h>
* #include <ccan/
tal/
grab_file/grab_file.h>
* #include <err.h>
* #include <err.h>
*
*
* // Dumb demo program to double-linespace a file.
* // Dumb demo program to double-linespace a file.
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
* char **lines;
* char **lines;
*
*
* // Grab lines in file.
* // Grab lines in file.
* textfile = grab_file(NULL, argv[1]
, NULL
);
* textfile = grab_file(NULL, argv[1]);
* if (!textfile)
* if (!textfile)
* err(1, "Failed reading %s", argv[1]);
* err(1, "Failed reading %s", argv[1]);
* lines = tal_strsplit(textfile, textfile, "\n", STR_EMPTY_OK);
* lines = tal_strsplit(textfile, textfile, "\n", STR_EMPTY_OK);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment