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
4cdcc648
Commit
4cdcc648
authored
Jan 10, 2008
by
Rusty Russell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move documentation from talloc_guide.txt into talloc.h and remove some
cruft.
parent
ff03158c
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
843 additions
and
62 deletions
+843
-62
talloc/talloc.c
talloc/talloc.c
+2
-2
talloc/talloc.h
talloc/talloc.h
+841
-60
No files found.
talloc/talloc.c
View file @
4cdcc648
...
...
@@ -1102,7 +1102,7 @@ char *talloc_strdup(const void *t, const char *p)
/*
append to a talloced string
*/
char
*
talloc_append_string
(
c
onst
void
*
t
,
c
har
*
orig
,
const
char
*
append
)
char
*
talloc_append_string
(
char
*
orig
,
const
char
*
append
)
{
char
*
ret
;
size_t
olen
=
strlen
(
orig
);
...
...
@@ -1113,7 +1113,7 @@ char *talloc_append_string(const void *t, char *orig, const char *append)
alenz
=
strlen
(
append
)
+
1
;
ret
=
talloc_realloc
(
t
,
orig
,
char
,
olen
+
alenz
);
ret
=
talloc_realloc
(
NULL
,
orig
,
char
,
olen
+
alenz
);
if
(
!
ret
)
return
NULL
;
...
...
talloc/talloc.h
View file @
4cdcc648
This diff is collapsed.
Click to expand it.
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