Browse Source

newlib: libc: Improved the readability of strspn with minor optimization

Signed-off-by: Xiao Zeng <zengxiao@eswincomputing.com>
topic/3.6
Xiao Zeng 3 years ago
committed by Jeff Johnston
parent
commit
99f3898dfc
  1. 3
      newlib/libc/string/strspn.c

3
newlib/libc/string/strspn.c

@ -41,10 +41,11 @@ strspn (const char *s1,
for (c = s2; *c; c++)
{
if (*s1 == *c)
break;
goto found;
}
if (*c == '\0')
break;
found:
s1++;
}

Loading…
Cancel
Save