diff options
Diffstat (limited to 'include/platform.h')
-rw-r--r-- | include/platform.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/platform.h b/include/platform.h index 0adbed4..ad3cc93 100644 --- a/include/platform.h +++ b/include/platform.h @@ -234,7 +234,8 @@ typedef unsigned smalluint; #endif #if defined(__dietlibc__) -static ATTRIBUTE_ALWAYS_INLINE char* strchrnul(const char *s, char c) { +static ATTRIBUTE_ALWAYS_INLINE char* strchrnul(const char *s, char c) +{ while (*s && *s != c) ++s; return (char*)s; } |