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

Unified Diff: fusl/src/string/wcsspn.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/wcsspn.c
diff --git a/fusl/src/string/wcsspn.c b/fusl/src/string/wcsspn.c
index 4320d8f6b7dc73de483b4ff1d47ed6e20f4be5c1..7caa7dcd8a8faa74d422330a40b653b821a81a70 100644
--- a/fusl/src/string/wcsspn.c
+++ b/fusl/src/string/wcsspn.c
@@ -1,8 +1,8 @@
#include <wchar.h>
-size_t wcsspn(const wchar_t *s, const wchar_t *c)
-{
- const wchar_t *a;
- for (a=s; *s && wcschr(c, *s); s++);
- return s-a;
+size_t wcsspn(const wchar_t* s, const wchar_t* c) {
+ const wchar_t* a;
+ for (a = s; *s && wcschr(c, *s); s++)
+ ;
+ return s - a;
}

Powered by Google App Engine
This is Rietveld 408576698