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

Unified Diff: fusl/src/string/memrchr.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/memrchr.c
diff --git a/fusl/src/string/memrchr.c b/fusl/src/string/memrchr.c
index a78e9d6cafa0c700cdeb00c856ac250d932e5ab5..6eb9a27f33c1b5ad80cfcc839bffa54f09ecfeb6 100644
--- a/fusl/src/string/memrchr.c
+++ b/fusl/src/string/memrchr.c
@@ -1,12 +1,13 @@
#include <string.h>
#include "libc.h"
-void *__memrchr(const void *m, int c, size_t n)
-{
- const unsigned char *s = m;
- c = (unsigned char)c;
- while (n--) if (s[n]==c) return (void *)(s+n);
- return 0;
+void* __memrchr(const void* m, int c, size_t n) {
+ const unsigned char* s = m;
+ c = (unsigned char)c;
+ while (n--)
+ if (s[n] == c)
+ return (void*)(s + n);
+ return 0;
}
weak_alias(__memrchr, memrchr);

Powered by Google App Engine
This is Rietveld 408576698