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

Unified Diff: fusl/src/string/wmemmove.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/wmemmove.c
diff --git a/fusl/src/string/wmemmove.c b/fusl/src/string/wmemmove.c
index e406f3d5c8dfc2af79b992c9f1fa6cfc80c12ec6..7d34d1ce3de3149b7e50ced747e6cdcd141fafb5 100644
--- a/fusl/src/string/wmemmove.c
+++ b/fusl/src/string/wmemmove.c
@@ -1,11 +1,12 @@
#include <wchar.h>
-wchar_t *wmemmove(wchar_t *d, const wchar_t *s, size_t n)
-{
- wchar_t *d0 = d;
- if ((size_t)(d-s) < n)
- while (n--) d[n] = s[n];
- else
- while (n--) *d++ = *s++;
- return d0;
+wchar_t* wmemmove(wchar_t* d, const wchar_t* s, size_t n) {
+ wchar_t* d0 = d;
+ if ((size_t)(d - s) < n)
+ while (n--)
+ d[n] = s[n];
+ else
+ while (n--)
+ *d++ = *s++;
+ return d0;
}

Powered by Google App Engine
This is Rietveld 408576698