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
2f00b7cc
Commit
2f00b7cc
authored
Oct 20, 2015
by
Rusty Russell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mem: switch descriptions for memeqzero/memeqstr
Closes: #32 Signed-off-by:
Rusty Russell
<
rusty@rustcorp.com.au
>
parent
3e7b9b50
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
ccan/mem/mem.h
ccan/mem/mem.h
+5
-5
No files found.
ccan/mem/mem.h
View file @
2f00b7cc
...
@@ -144,7 +144,10 @@ static inline bool memstarts(void const *data, size_t data_len,
...
@@ -144,7 +144,10 @@ static inline bool memstarts(void const *data, size_t data_len,
* }
* }
*/
*/
PURE_FUNCTION
PURE_FUNCTION
bool
memeqzero
(
const
void
*
data
,
size_t
length
);
static
inline
bool
memeqstr
(
const
void
*
data
,
size_t
length
,
const
char
*
string
)
{
return
memeq
(
data
,
length
,
string
,
strlen
(
string
));
}
/**
/**
* memeqzero - Is a byte array all zeroes?
* memeqzero - Is a byte array all zeroes?
...
@@ -157,10 +160,7 @@ bool memeqzero(const void *data, size_t length);
...
@@ -157,10 +160,7 @@ bool memeqzero(const void *data, size_t length);
* }
* }
*/
*/
PURE_FUNCTION
PURE_FUNCTION
static
inline
bool
memeqstr
(
const
void
*
data
,
size_t
length
,
const
char
*
string
)
bool
memeqzero
(
const
void
*
data
,
size_t
length
);
{
return
memeq
(
data
,
length
,
string
,
strlen
(
string
));
}
/**
/**
* memstarts_str - Does this byte array start with a string prefix?
* memstarts_str - Does this byte array start with a string prefix?
...
...
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