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

Unified Diff: fusl/src/string/strncat.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/strncat.c
diff --git a/fusl/src/string/strncat.c b/fusl/src/string/strncat.c
index 01ca2a2317c6f29ecc1289e94b76b72c69698ea8..30f649986b122e8f86e6519debf4f6b851c9a0c9 100644
--- a/fusl/src/string/strncat.c
+++ b/fusl/src/string/strncat.c
@@ -1,10 +1,10 @@
#include <string.h>
-char *strncat(char *restrict d, const char *restrict s, size_t n)
-{
- char *a = d;
- d += strlen(d);
- while (n && *s) n--, *d++ = *s++;
- *d++ = 0;
- return a;
+char* strncat(char* restrict d, const char* restrict s, size_t n) {
+ char* a = d;
+ d += strlen(d);
+ while (n && *s)
+ n--, *d++ = *s++;
+ *d++ = 0;
+ return a;
}

Powered by Google App Engine
This is Rietveld 408576698