diff options
Diffstat (limited to 'newlib/libc')
-rw-r--r-- | newlib/libc/string/wcschr.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/newlib/libc/string/wcschr.c b/newlib/libc/string/wcschr.c index fa213c90b..acc07a521 100644 --- a/newlib/libc/string/wcschr.c +++ b/newlib/libc/string/wcschr.c @@ -69,14 +69,13 @@ _DEFUN (wcschr, (s, c), _CONST wchar_t *p; p = s; - while (*p) + do { if (*p == c) { /* LINTED interface specification */ return (wchar_t *) p; } - p++; - } + } while (*p++); return NULL; } |