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

Unified Diff: fusl/src/stdio/gets.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/gets.c
diff --git a/fusl/src/stdio/gets.c b/fusl/src/stdio/gets.c
index 6c4645e5640b7b9d4df8387346a02122dfc0f5ea..0fc9e6af0c741f0c2d300217e20083f5c629908f 100644
--- a/fusl/src/stdio/gets.c
+++ b/fusl/src/stdio/gets.c
@@ -2,9 +2,9 @@
#include <limits.h>
#include <string.h>
-char *gets(char *s)
-{
- char *ret = fgets(s, INT_MAX, stdin);
- if (ret && s[strlen(s)-1] == '\n') s[strlen(s)-1] = 0;
- return ret;
+char* gets(char* s) {
+ char* ret = fgets(s, INT_MAX, stdin);
+ if (ret && s[strlen(s) - 1] == '\n')
+ s[strlen(s) - 1] = 0;
+ return ret;
}

Powered by Google App Engine
This is Rietveld 408576698