Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
b73d296d
"vscode:/vscode.git/clone" did not exist on "d22189848e3549800486d009aeb7d6a692fd55be"
Commit
b73d296d
authored
Jun 20, 2019
by
John Tsichritzis
Committed by
TrustedFirmware Code Review
Jun 20, 2019
Browse files
Merge "libc: fix memchr implementation" into integration
parents
f56734fe
294062fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/libc/memchr.c
View file @
b73d296d
...
...
@@ -9,10 +9,10 @@
void
*
memchr
(
const
void
*
src
,
int
c
,
size_t
len
)
{
const
char
*
s
=
src
;
const
unsigned
char
*
s
=
src
;
while
(
len
--
)
{
if
(
*
s
==
c
)
if
(
*
s
==
(
unsigned
char
)
c
)
return
(
void
*
)
s
;
s
++
;
}
...
...
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