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

Unified Diff: fusl/src/string/strcpy.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/strcpy.c
diff --git a/fusl/src/string/strcpy.c b/fusl/src/string/strcpy.c
index f7e3ba38c16e3e69395f85dcdd6c23bb20797a6c..485e10833154c042475d832f6679573a4f809699 100644
--- a/fusl/src/string/strcpy.c
+++ b/fusl/src/string/strcpy.c
@@ -1,16 +1,16 @@
#include <string.h>
-char *__stpcpy(char *, const char *);
+char* __stpcpy(char*, const char*);
-char *strcpy(char *restrict dest, const char *restrict src)
-{
+char* strcpy(char* restrict dest, const char* restrict src) {
#if 1
- __stpcpy(dest, src);
- return dest;
+ __stpcpy(dest, src);
+ return dest;
#else
- const unsigned char *s = src;
- unsigned char *d = dest;
- while ((*d++ = *s++));
- return dest;
+ const unsigned char* s = src;
+ unsigned char* d = dest;
+ while ((*d++ = *s++))
+ ;
+ return dest;
#endif
}

Powered by Google App Engine
This is Rietveld 408576698