Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Unified Diff: fusl/src/string/wmemchr.c

Issue 1714623002: [fusl] clang-format fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: headers too Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: fusl/src/string/wmemchr.c
diff --git a/fusl/src/string/wmemchr.c b/fusl/src/string/wmemchr.c
index 2bc2c2702c928cbbf4dad9188598c4b16c05f646..34699c12853debbb928bf5ccf059be4ef14e15ee 100644
--- a/fusl/src/string/wmemchr.c
+++ b/fusl/src/string/wmemchr.c
@@ -1,7 +1,7 @@
#include <wchar.h>
-wchar_t *wmemchr(const wchar_t *s, wchar_t c, size_t n)
-{
- for (; n && *s != c; n--, s++);
- return n ? (wchar_t *)s : 0;
+wchar_t* wmemchr(const wchar_t* s, wchar_t c, size_t n) {
+ for (; n && *s != c; n--, s++)
+ ;
+ return n ? (wchar_t*)s : 0;
}

Powered by Google App Engine
This is Rietveld 408576698