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

Unified Diff: fusl/src/stdio/sprintf.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/stdio/sprintf.c
diff --git a/fusl/src/stdio/sprintf.c b/fusl/src/stdio/sprintf.c
index 9dff524c0925ed7a6903125cccbd4647b1bcf722..5075e2c5fb983cde5fcb73d27109d845f330a43a 100644
--- a/fusl/src/stdio/sprintf.c
+++ b/fusl/src/stdio/sprintf.c
@@ -1,12 +1,11 @@
#include <stdio.h>
#include <stdarg.h>
-int sprintf(char *restrict s, const char *restrict fmt, ...)
-{
- int ret;
- va_list ap;
- va_start(ap, fmt);
- ret = vsprintf(s, fmt, ap);
- va_end(ap);
- return ret;
+int sprintf(char* restrict s, const char* restrict fmt, ...) {
+ int ret;
+ va_list ap;
+ va_start(ap, fmt);
+ ret = vsprintf(s, fmt, ap);
+ va_end(ap);
+ return ret;
}

Powered by Google App Engine
This is Rietveld 408576698