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

Unified Diff: fusl/src/string/strchr.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/strchr.c
diff --git a/fusl/src/string/strchr.c b/fusl/src/string/strchr.c
index bfae8f9f846a01c14d288d34e8659f265a9daf2e..770e2fee40ec6b80b28a7f54871da3c4f7b6f265 100644
--- a/fusl/src/string/strchr.c
+++ b/fusl/src/string/strchr.c
@@ -1,9 +1,8 @@
#include <string.h>
-char *__strchrnul(const char *, int);
+char* __strchrnul(const char*, int);
-char *strchr(const char *s, int c)
-{
- char *r = __strchrnul(s, c);
- return *(unsigned char *)r == (unsigned char)c ? r : 0;
+char* strchr(const char* s, int c) {
+ char* r = __strchrnul(s, c);
+ return *(unsigned char*)r == (unsigned char)c ? r : 0;
}

Powered by Google App Engine
This is Rietveld 408576698