|
|
|
@ -277,7 +277,7 @@ extern char *fgets(char * __restrict__ __s, int __n,
|
|
|
|
|
extern int fputc(int __c, FILE *__fp);
|
|
|
|
|
|
|
|
|
|
/* Write a string to a stream (excluding the NUL nyte). */
|
|
|
|
|
extern int fputs(char const * __restrict__ s, FILE * __restrict__ fp);
|
|
|
|
|
extern int fputs(char const * __restrict__ __s, FILE * __restrict__ __fp);
|
|
|
|
|
|
|
|
|
|
extern int getc(FILE *__fp);
|
|
|
|
|
#define getc fgetc
|
|
|
|
@ -289,11 +289,13 @@ extern int getchar(void);
|
|
|
|
|
/* (DEPRECATED; use fgets() instead) Read a string from stdin. */
|
|
|
|
|
extern char *gets(char *__s);
|
|
|
|
|
|
|
|
|
|
/*get a line from stream*/
|
|
|
|
|
extern ssize_t getline(char **restrict __lineptr, size_t *restrict __n, FILE *restrict __fp);
|
|
|
|
|
/* Get a line from stream, with dynamic allocation */
|
|
|
|
|
extern ssize_t getline(char ** __restrict__ __lineptr,
|
|
|
|
|
size_t * __restrict__ __n, FILE * __restrict__ __fp);
|
|
|
|
|
|
|
|
|
|
/*like getline but with 'delim' instead of \n*/
|
|
|
|
|
extern ssize_t getdelim(char **restrict __lineptr, size_t *restrict __n, int __delim, FILE *restrict __fp);
|
|
|
|
|
/* Like getline but with [delim] instead of '\n' */
|
|
|
|
|
extern ssize_t getdelim(char ** __restrict__ __lineptr,
|
|
|
|
|
size_t * __restrict__ __n, int __delim, FILE * __restrict__ __fp);
|
|
|
|
|
|
|
|
|
|
extern int putc(int __c, FILE *__fp);
|
|
|
|
|
#define putc fputc
|
|
|
|
|