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

Unified Diff: fusl/src/string/strnlen.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/strnlen.c
diff --git a/fusl/src/string/strnlen.c b/fusl/src/string/strnlen.c
index 6442eb793fbeeda51a3f19b9e1c1269a030444e9..099706974b97993082e9fc07bba38f666fbc0afe 100644
--- a/fusl/src/string/strnlen.c
+++ b/fusl/src/string/strnlen.c
@@ -1,7 +1,6 @@
#include <string.h>
-size_t strnlen(const char *s, size_t n)
-{
- const char *p = memchr(s, 0, n);
- return p ? p-s : n;
+size_t strnlen(const char* s, size_t n) {
+ const char* p = memchr(s, 0, n);
+ return p ? p - s : n;
}

Powered by Google App Engine
This is Rietveld 408576698