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

Unified Diff: fusl/src/string/wcsncmp.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/wcsncmp.c
diff --git a/fusl/src/string/wcsncmp.c b/fusl/src/string/wcsncmp.c
index 4ab32a924c4657dadd98677d4771042f120f43c8..b8827372c05ff0186f6fabfb6b7fee67ebe971a9 100644
--- a/fusl/src/string/wcsncmp.c
+++ b/fusl/src/string/wcsncmp.c
@@ -1,7 +1,7 @@
#include <wchar.h>
-int wcsncmp(const wchar_t *l, const wchar_t *r, size_t n)
-{
- for (; n && *l==*r && *l && *r; n--, l++, r++);
- return n ? *l - *r : 0;
+int wcsncmp(const wchar_t* l, const wchar_t* r, size_t n) {
+ for (; n && *l == *r && *l && *r; n--, l++, r++)
+ ;
+ return n ? *l - *r : 0;
}

Powered by Google App Engine
This is Rietveld 408576698