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

Unified Diff: fusl/src/string/wcschr.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/wcschr.c
diff --git a/fusl/src/string/wcschr.c b/fusl/src/string/wcschr.c
index 8dfc2f318316f84ac396d85349373f423d5fd6df..507b1f88d54c5e274eb7f442d12355a10e3cf1fb 100644
--- a/fusl/src/string/wcschr.c
+++ b/fusl/src/string/wcschr.c
@@ -1,8 +1,9 @@
#include <wchar.h>
-wchar_t *wcschr(const wchar_t *s, wchar_t c)
-{
- if (!c) return (wchar_t *)s + wcslen(s);
- for (; *s && *s != c; s++);
- return *s ? (wchar_t *)s : 0;
+wchar_t* wcschr(const wchar_t* s, wchar_t c) {
+ if (!c)
+ return (wchar_t*)s + wcslen(s);
+ for (; *s && *s != c; s++)
+ ;
+ return *s ? (wchar_t*)s : 0;
}

Powered by Google App Engine
This is Rietveld 408576698