repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
s390x: add single-instruction math functions
[musl.git]
/
src
/
stdio
/
gets.c
blob
6c4645e5640b7b9d4df8387346a02122dfc0f5ea
1
#include
"stdio_impl.h"
2
#include <limits.h>
3
#include <string.h>
4
5
char
*
gets
(
char
*
s
)
6
{
7
char
*
ret
=
fgets
(
s
,
INT_MAX
,
stdin
);
8
if
(
ret
&&
s
[
strlen
(
s
)-
1
] ==
'
\n
'
)
s
[
strlen
(
s
)-
1
] =
0
;
9
return
ret
;
10
}