projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fix non-atomicity of puts
[oweals/musl.git]
/
src
/
stdio
/
gets.c
1
#include "stdio_impl.h"
2
3
char *gets(char *s)
4
{
5
char *ret = fgets(s, INT_MAX, stdin);
6
if (ret && s[strlen(s)-1] == '\n') s[strlen(s)-1] = 0;
7
return ret;
8
}