mirror of
https://github.com/apache/nuttx.git
synced 2026-05-25 01:39:44 +08:00
Fixes to strchr, mkfats, and NxWidgets from Petteri Aimonen
This commit is contained in:
@@ -64,12 +64,17 @@ FAR char *strchr(FAR const char *s, int c)
|
||||
{
|
||||
if (s)
|
||||
{
|
||||
for (; *s; s++)
|
||||
for (; ; s++)
|
||||
{
|
||||
if (*s == c)
|
||||
{
|
||||
return (FAR char *)s;
|
||||
}
|
||||
|
||||
if (!*s)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user