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

Unified Diff: fusl/src/string/strcasestr.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/strcasestr.c
diff --git a/fusl/src/string/strcasestr.c b/fusl/src/string/strcasestr.c
index af109f3611bd4d917fc9311308006b867bcd8780..695da2e38602e812a2e42eb46655e3921344e3a1 100644
--- a/fusl/src/string/strcasestr.c
+++ b/fusl/src/string/strcasestr.c
@@ -1,9 +1,10 @@
#define _GNU_SOURCE
#include <string.h>
-char *strcasestr(const char *h, const char *n)
-{
- size_t l = strlen(n);
- for (; *h; h++) if (!strncasecmp(h, n, l)) return (char *)h;
- return 0;
+char* strcasestr(const char* h, const char* n) {
+ size_t l = strlen(n);
+ for (; *h; h++)
+ if (!strncasecmp(h, n, l))
+ return (char*)h;
+ return 0;
}

Powered by Google App Engine
This is Rietveld 408576698