diff options
Diffstat (limited to 'newlib/libc/stdio/gets.c')
-rw-r--r-- | newlib/libc/stdio/gets.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/newlib/libc/stdio/gets.c b/newlib/libc/stdio/gets.c index b90271fb9..796100e32 100644 --- a/newlib/libc/stdio/gets.c +++ b/newlib/libc/stdio/gets.c @@ -15,10 +15,11 @@ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ + /* -FUNCTION -<<gets>>---get character string (obsolete, use <<fgets>> instead) +FUNCTION + <<gets>>---get character string (obsolete, use <<fgets>> instead) INDEX gets INDEX @@ -29,7 +30,7 @@ ANSI_SYNOPSIS char *gets(char *<[buf]>); - char *_gets_r(struct _reent *<[reent]>, char *<[buf]>); + char *_gets_r(void *<[reent]>, char *<[buf]>); TRAD_SYNOPSIS #include <stdio.h> @@ -38,7 +39,7 @@ TRAD_SYNOPSIS char *<[buf]>; char *_gets_r(<[reent]>, <[buf]>) - struct _reent *<[reent]>; + char *<[reent]>; char *<[buf]>; DESCRIPTION @@ -67,14 +68,12 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>, <<lseek>>, <<read>>, <<sbrk>>, <<write>>. */ -#include <_ansi.h> -#include <reent.h> #include <stdio.h> char * -_DEFUN(_gets_r, (ptr, buf), - struct _reent *ptr _AND - char *buf) +_gets_r (ptr, buf) + struct _reent *ptr; + char *buf; { register int c; register char *s = buf; @@ -94,8 +93,8 @@ _DEFUN(_gets_r, (ptr, buf), #ifndef _REENT_ONLY char * -_DEFUN(gets, (buf), - char *buf) +gets (buf) + char *buf; { return _gets_r (_REENT, buf); } |