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

Unified Diff: fusl/src/string/wcsnlen.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/wcsnlen.c
diff --git a/fusl/src/string/wcsnlen.c b/fusl/src/string/wcsnlen.c
index a7763373147b4fa1215a74cf20952630276b9e9a..d5bf7f13c8e1a76bad8eb4669780da2399bee7fc 100644
--- a/fusl/src/string/wcsnlen.c
+++ b/fusl/src/string/wcsnlen.c
@@ -1,8 +1,8 @@
#include <wchar.h>
-size_t wcsnlen(const wchar_t *s, size_t n)
-{
- const wchar_t *z = wmemchr(s, 0, n);
- if (z) n = z-s;
- return n;
+size_t wcsnlen(const wchar_t* s, size_t n) {
+ const wchar_t* z = wmemchr(s, 0, n);
+ if (z)
+ n = z - s;
+ return n;
}

Powered by Google App Engine
This is Rietveld 408576698