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

Unified Diff: fusl/src/string/strlcat.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/strlcat.c
diff --git a/fusl/src/string/strlcat.c b/fusl/src/string/strlcat.c
index ef81209e35efeb2ae18e50b4fd99d85ae2aaf924..243fc1515f4a31546d8d81149aaf7501e10a8745 100644
--- a/fusl/src/string/strlcat.c
+++ b/fusl/src/string/strlcat.c
@@ -1,9 +1,9 @@
#define _BSD_SOURCE
#include <string.h>
-size_t strlcat(char *d, const char *s, size_t n)
-{
- size_t l = strnlen(d, n);
- if (l == n) return l + strlen(s);
- return l + strlcpy(d+l, s, n-l);
+size_t strlcat(char* d, const char* s, size_t n) {
+ size_t l = strnlen(d, n);
+ if (l == n)
+ return l + strlen(s);
+ return l + strlcpy(d + l, s, n - l);
}

Powered by Google App Engine
This is Rietveld 408576698