Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../proc/self/root/usr/include
File: stdio.h
/* Define ISO C stdio on top of C++ iostreams.
[0] Fix | Delete
Copyright (C) 1991-2018 Free Software Foundation, Inc.
[1] Fix | Delete
This file is part of the GNU C Library.
[2] Fix | Delete
[3] Fix | Delete
The GNU C Library is free software; you can redistribute it and/or
[4] Fix | Delete
modify it under the terms of the GNU Lesser General Public
[5] Fix | Delete
License as published by the Free Software Foundation; either
[6] Fix | Delete
version 2.1 of the License, or (at your option) any later version.
[7] Fix | Delete
[8] Fix | Delete
The GNU C Library is distributed in the hope that it will be useful,
[9] Fix | Delete
but WITHOUT ANY WARRANTY; without even the implied warranty of
[10] Fix | Delete
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
[11] Fix | Delete
Lesser General Public License for more details.
[12] Fix | Delete
[13] Fix | Delete
You should have received a copy of the GNU Lesser General Public
[14] Fix | Delete
License along with the GNU C Library; if not, see
[15] Fix | Delete
<http://www.gnu.org/licenses/>. */
[16] Fix | Delete
[17] Fix | Delete
/*
[18] Fix | Delete
* ISO C99 Standard: 7.19 Input/output <stdio.h>
[19] Fix | Delete
*/
[20] Fix | Delete
[21] Fix | Delete
#ifndef _STDIO_H
[22] Fix | Delete
#define _STDIO_H 1
[23] Fix | Delete
[24] Fix | Delete
#define __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION
[25] Fix | Delete
#include <bits/libc-header-start.h>
[26] Fix | Delete
[27] Fix | Delete
__BEGIN_DECLS
[28] Fix | Delete
[29] Fix | Delete
#define __need_size_t
[30] Fix | Delete
#define __need_NULL
[31] Fix | Delete
#include <stddef.h>
[32] Fix | Delete
[33] Fix | Delete
#define __need___va_list
[34] Fix | Delete
#include <stdarg.h>
[35] Fix | Delete
[36] Fix | Delete
#include <bits/types.h>
[37] Fix | Delete
#include <bits/types/__fpos_t.h>
[38] Fix | Delete
#include <bits/types/__fpos64_t.h>
[39] Fix | Delete
#include <bits/types/__FILE.h>
[40] Fix | Delete
#include <bits/types/FILE.h>
[41] Fix | Delete
#include <bits/types/struct_FILE.h>
[42] Fix | Delete
[43] Fix | Delete
#ifdef __USE_GNU
[44] Fix | Delete
# include <bits/types/cookie_io_functions_t.h>
[45] Fix | Delete
#endif
[46] Fix | Delete
[47] Fix | Delete
#if defined __USE_XOPEN || defined __USE_XOPEN2K8
[48] Fix | Delete
# ifdef __GNUC__
[49] Fix | Delete
# ifndef _VA_LIST_DEFINED
[50] Fix | Delete
typedef __gnuc_va_list va_list;
[51] Fix | Delete
# define _VA_LIST_DEFINED
[52] Fix | Delete
# endif
[53] Fix | Delete
# else
[54] Fix | Delete
# include <stdarg.h>
[55] Fix | Delete
# endif
[56] Fix | Delete
#endif
[57] Fix | Delete
[58] Fix | Delete
#if defined __USE_UNIX98 || defined __USE_XOPEN2K
[59] Fix | Delete
# ifndef __off_t_defined
[60] Fix | Delete
# ifndef __USE_FILE_OFFSET64
[61] Fix | Delete
typedef __off_t off_t;
[62] Fix | Delete
# else
[63] Fix | Delete
typedef __off64_t off_t;
[64] Fix | Delete
# endif
[65] Fix | Delete
# define __off_t_defined
[66] Fix | Delete
# endif
[67] Fix | Delete
# if defined __USE_LARGEFILE64 && !defined __off64_t_defined
[68] Fix | Delete
typedef __off64_t off64_t;
[69] Fix | Delete
# define __off64_t_defined
[70] Fix | Delete
# endif
[71] Fix | Delete
#endif
[72] Fix | Delete
[73] Fix | Delete
#ifdef __USE_XOPEN2K8
[74] Fix | Delete
# ifndef __ssize_t_defined
[75] Fix | Delete
typedef __ssize_t ssize_t;
[76] Fix | Delete
# define __ssize_t_defined
[77] Fix | Delete
# endif
[78] Fix | Delete
#endif
[79] Fix | Delete
[80] Fix | Delete
/* The type of the second argument to `fgetpos' and `fsetpos'. */
[81] Fix | Delete
#ifndef __USE_FILE_OFFSET64
[82] Fix | Delete
typedef __fpos_t fpos_t;
[83] Fix | Delete
#else
[84] Fix | Delete
typedef __fpos64_t fpos_t;
[85] Fix | Delete
#endif
[86] Fix | Delete
#ifdef __USE_LARGEFILE64
[87] Fix | Delete
typedef __fpos64_t fpos64_t;
[88] Fix | Delete
#endif
[89] Fix | Delete
[90] Fix | Delete
/* The possibilities for the third argument to `setvbuf'. */
[91] Fix | Delete
#define _IOFBF 0 /* Fully buffered. */
[92] Fix | Delete
#define _IOLBF 1 /* Line buffered. */
[93] Fix | Delete
#define _IONBF 2 /* No buffering. */
[94] Fix | Delete
[95] Fix | Delete
[96] Fix | Delete
/* Default buffer size. */
[97] Fix | Delete
#define BUFSIZ 8192
[98] Fix | Delete
[99] Fix | Delete
[100] Fix | Delete
/* The value returned by fgetc and similar functions to indicate the
[101] Fix | Delete
end of the file. */
[102] Fix | Delete
#define EOF (-1)
[103] Fix | Delete
[104] Fix | Delete
[105] Fix | Delete
/* The possibilities for the third argument to `fseek'.
[106] Fix | Delete
These values should not be changed. */
[107] Fix | Delete
#define SEEK_SET 0 /* Seek from beginning of file. */
[108] Fix | Delete
#define SEEK_CUR 1 /* Seek from current position. */
[109] Fix | Delete
#define SEEK_END 2 /* Seek from end of file. */
[110] Fix | Delete
#ifdef __USE_GNU
[111] Fix | Delete
# define SEEK_DATA 3 /* Seek to next data. */
[112] Fix | Delete
# define SEEK_HOLE 4 /* Seek to next hole. */
[113] Fix | Delete
#endif
[114] Fix | Delete
[115] Fix | Delete
[116] Fix | Delete
#if defined __USE_MISC || defined __USE_XOPEN
[117] Fix | Delete
/* Default path prefix for `tempnam' and `tmpnam'. */
[118] Fix | Delete
# define P_tmpdir "/tmp"
[119] Fix | Delete
#endif
[120] Fix | Delete
[121] Fix | Delete
[122] Fix | Delete
/* Get the values:
[123] Fix | Delete
L_tmpnam How long an array of chars must be to be passed to `tmpnam'.
[124] Fix | Delete
TMP_MAX The minimum number of unique filenames generated by tmpnam
[125] Fix | Delete
(and tempnam when it uses tmpnam's name space),
[126] Fix | Delete
or tempnam (the two are separate).
[127] Fix | Delete
L_ctermid How long an array to pass to `ctermid'.
[128] Fix | Delete
L_cuserid How long an array to pass to `cuserid'.
[129] Fix | Delete
FOPEN_MAX Minimum number of files that can be open at once.
[130] Fix | Delete
FILENAME_MAX Maximum length of a filename. */
[131] Fix | Delete
#include <bits/stdio_lim.h>
[132] Fix | Delete
[133] Fix | Delete
[134] Fix | Delete
/* Standard streams. */
[135] Fix | Delete
extern FILE *stdin; /* Standard input stream. */
[136] Fix | Delete
extern FILE *stdout; /* Standard output stream. */
[137] Fix | Delete
extern FILE *stderr; /* Standard error output stream. */
[138] Fix | Delete
/* C89/C99 say they're macros. Make them happy. */
[139] Fix | Delete
#define stdin stdin
[140] Fix | Delete
#define stdout stdout
[141] Fix | Delete
#define stderr stderr
[142] Fix | Delete
[143] Fix | Delete
/* Remove file FILENAME. */
[144] Fix | Delete
extern int remove (const char *__filename) __THROW;
[145] Fix | Delete
/* Rename file OLD to NEW. */
[146] Fix | Delete
extern int rename (const char *__old, const char *__new) __THROW;
[147] Fix | Delete
[148] Fix | Delete
#ifdef __USE_ATFILE
[149] Fix | Delete
/* Rename file OLD relative to OLDFD to NEW relative to NEWFD. */
[150] Fix | Delete
extern int renameat (int __oldfd, const char *__old, int __newfd,
[151] Fix | Delete
const char *__new) __THROW;
[152] Fix | Delete
#endif
[153] Fix | Delete
[154] Fix | Delete
#ifdef __USE_GNU
[155] Fix | Delete
/* Flags for renameat2. */
[156] Fix | Delete
# define RENAME_NOREPLACE (1 << 0)
[157] Fix | Delete
# define RENAME_EXCHANGE (1 << 1)
[158] Fix | Delete
# define RENAME_WHITEOUT (1 << 2)
[159] Fix | Delete
[160] Fix | Delete
/* Rename file OLD relative to OLDFD to NEW relative to NEWFD, with
[161] Fix | Delete
additional flags. */
[162] Fix | Delete
extern int renameat2 (int __oldfd, const char *__old, int __newfd,
[163] Fix | Delete
const char *__new, unsigned int __flags) __THROW;
[164] Fix | Delete
#endif
[165] Fix | Delete
[166] Fix | Delete
/* Create a temporary file and open it read/write.
[167] Fix | Delete
[168] Fix | Delete
This function is a possible cancellation point and therefore not
[169] Fix | Delete
marked with __THROW. */
[170] Fix | Delete
#ifndef __USE_FILE_OFFSET64
[171] Fix | Delete
extern FILE *tmpfile (void) __wur;
[172] Fix | Delete
#else
[173] Fix | Delete
# ifdef __REDIRECT
[174] Fix | Delete
extern FILE *__REDIRECT (tmpfile, (void), tmpfile64) __wur;
[175] Fix | Delete
# else
[176] Fix | Delete
# define tmpfile tmpfile64
[177] Fix | Delete
# endif
[178] Fix | Delete
#endif
[179] Fix | Delete
[180] Fix | Delete
#ifdef __USE_LARGEFILE64
[181] Fix | Delete
extern FILE *tmpfile64 (void) __wur;
[182] Fix | Delete
#endif
[183] Fix | Delete
[184] Fix | Delete
/* Generate a temporary filename. */
[185] Fix | Delete
extern char *tmpnam (char *__s) __THROW __wur;
[186] Fix | Delete
[187] Fix | Delete
#ifdef __USE_MISC
[188] Fix | Delete
/* This is the reentrant variant of `tmpnam'. The only difference is
[189] Fix | Delete
that it does not allow S to be NULL. */
[190] Fix | Delete
extern char *tmpnam_r (char *__s) __THROW __wur;
[191] Fix | Delete
#endif
[192] Fix | Delete
[193] Fix | Delete
[194] Fix | Delete
#if defined __USE_MISC || defined __USE_XOPEN
[195] Fix | Delete
/* Generate a unique temporary filename using up to five characters of PFX
[196] Fix | Delete
if it is not NULL. The directory to put this file in is searched for
[197] Fix | Delete
as follows: First the environment variable "TMPDIR" is checked.
[198] Fix | Delete
If it contains the name of a writable directory, that directory is used.
[199] Fix | Delete
If not and if DIR is not NULL, that value is checked. If that fails,
[200] Fix | Delete
P_tmpdir is tried and finally "/tmp". The storage for the filename
[201] Fix | Delete
is allocated by `malloc'. */
[202] Fix | Delete
extern char *tempnam (const char *__dir, const char *__pfx)
[203] Fix | Delete
__THROW __attribute_malloc__ __wur;
[204] Fix | Delete
#endif
[205] Fix | Delete
[206] Fix | Delete
[207] Fix | Delete
/* Close STREAM.
[208] Fix | Delete
[209] Fix | Delete
This function is a possible cancellation point and therefore not
[210] Fix | Delete
marked with __THROW. */
[211] Fix | Delete
extern int fclose (FILE *__stream);
[212] Fix | Delete
/* Flush STREAM, or all streams if STREAM is NULL.
[213] Fix | Delete
[214] Fix | Delete
This function is a possible cancellation point and therefore not
[215] Fix | Delete
marked with __THROW. */
[216] Fix | Delete
extern int fflush (FILE *__stream);
[217] Fix | Delete
[218] Fix | Delete
#ifdef __USE_MISC
[219] Fix | Delete
/* Faster versions when locking is not required.
[220] Fix | Delete
[221] Fix | Delete
This function is not part of POSIX and therefore no official
[222] Fix | Delete
cancellation point. But due to similarity with an POSIX interface
[223] Fix | Delete
or due to the implementation it is a cancellation point and
[224] Fix | Delete
therefore not marked with __THROW. */
[225] Fix | Delete
extern int fflush_unlocked (FILE *__stream);
[226] Fix | Delete
#endif
[227] Fix | Delete
[228] Fix | Delete
#ifdef __USE_GNU
[229] Fix | Delete
/* Close all streams.
[230] Fix | Delete
[231] Fix | Delete
This function is not part of POSIX and therefore no official
[232] Fix | Delete
cancellation point. But due to similarity with an POSIX interface
[233] Fix | Delete
or due to the implementation it is a cancellation point and
[234] Fix | Delete
therefore not marked with __THROW. */
[235] Fix | Delete
extern int fcloseall (void);
[236] Fix | Delete
#endif
[237] Fix | Delete
[238] Fix | Delete
[239] Fix | Delete
#ifndef __USE_FILE_OFFSET64
[240] Fix | Delete
/* Open a file and create a new stream for it.
[241] Fix | Delete
[242] Fix | Delete
This function is a possible cancellation point and therefore not
[243] Fix | Delete
marked with __THROW. */
[244] Fix | Delete
extern FILE *fopen (const char *__restrict __filename,
[245] Fix | Delete
const char *__restrict __modes) __wur;
[246] Fix | Delete
/* Open a file, replacing an existing stream with it.
[247] Fix | Delete
[248] Fix | Delete
This function is a possible cancellation point and therefore not
[249] Fix | Delete
marked with __THROW. */
[250] Fix | Delete
extern FILE *freopen (const char *__restrict __filename,
[251] Fix | Delete
const char *__restrict __modes,
[252] Fix | Delete
FILE *__restrict __stream) __wur;
[253] Fix | Delete
#else
[254] Fix | Delete
# ifdef __REDIRECT
[255] Fix | Delete
extern FILE *__REDIRECT (fopen, (const char *__restrict __filename,
[256] Fix | Delete
const char *__restrict __modes), fopen64)
[257] Fix | Delete
__wur;
[258] Fix | Delete
extern FILE *__REDIRECT (freopen, (const char *__restrict __filename,
[259] Fix | Delete
const char *__restrict __modes,
[260] Fix | Delete
FILE *__restrict __stream), freopen64)
[261] Fix | Delete
__wur;
[262] Fix | Delete
# else
[263] Fix | Delete
# define fopen fopen64
[264] Fix | Delete
# define freopen freopen64
[265] Fix | Delete
# endif
[266] Fix | Delete
#endif
[267] Fix | Delete
#ifdef __USE_LARGEFILE64
[268] Fix | Delete
extern FILE *fopen64 (const char *__restrict __filename,
[269] Fix | Delete
const char *__restrict __modes) __wur;
[270] Fix | Delete
extern FILE *freopen64 (const char *__restrict __filename,
[271] Fix | Delete
const char *__restrict __modes,
[272] Fix | Delete
FILE *__restrict __stream) __wur;
[273] Fix | Delete
#endif
[274] Fix | Delete
[275] Fix | Delete
#ifdef __USE_POSIX
[276] Fix | Delete
/* Create a new stream that refers to an existing system file descriptor. */
[277] Fix | Delete
extern FILE *fdopen (int __fd, const char *__modes) __THROW __wur;
[278] Fix | Delete
#endif
[279] Fix | Delete
[280] Fix | Delete
#ifdef __USE_GNU
[281] Fix | Delete
/* Create a new stream that refers to the given magic cookie,
[282] Fix | Delete
and uses the given functions for input and output. */
[283] Fix | Delete
extern FILE *fopencookie (void *__restrict __magic_cookie,
[284] Fix | Delete
const char *__restrict __modes,
[285] Fix | Delete
cookie_io_functions_t __io_funcs) __THROW __wur;
[286] Fix | Delete
#endif
[287] Fix | Delete
[288] Fix | Delete
#if defined __USE_XOPEN2K8 || __GLIBC_USE (LIB_EXT2)
[289] Fix | Delete
/* Create a new stream that refers to a memory buffer. */
[290] Fix | Delete
extern FILE *fmemopen (void *__s, size_t __len, const char *__modes)
[291] Fix | Delete
__THROW __wur;
[292] Fix | Delete
[293] Fix | Delete
/* Open a stream that writes into a malloc'd buffer that is expanded as
[294] Fix | Delete
necessary. *BUFLOC and *SIZELOC are updated with the buffer's location
[295] Fix | Delete
and the number of characters written on fflush or fclose. */
[296] Fix | Delete
extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) __THROW __wur;
[297] Fix | Delete
#endif
[298] Fix | Delete
[299] Fix | Delete
[300] Fix | Delete
/* If BUF is NULL, make STREAM unbuffered.
[301] Fix | Delete
Else make it use buffer BUF, of size BUFSIZ. */
[302] Fix | Delete
extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __THROW;
[303] Fix | Delete
/* Make STREAM use buffering mode MODE.
[304] Fix | Delete
If BUF is not NULL, use N bytes of it for buffering;
[305] Fix | Delete
else allocate an internal buffer N bytes long. */
[306] Fix | Delete
extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf,
[307] Fix | Delete
int __modes, size_t __n) __THROW;
[308] Fix | Delete
[309] Fix | Delete
#ifdef __USE_MISC
[310] Fix | Delete
/* If BUF is NULL, make STREAM unbuffered.
[311] Fix | Delete
Else make it use SIZE bytes of BUF for buffering. */
[312] Fix | Delete
extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf,
[313] Fix | Delete
size_t __size) __THROW;
[314] Fix | Delete
[315] Fix | Delete
/* Make STREAM line-buffered. */
[316] Fix | Delete
extern void setlinebuf (FILE *__stream) __THROW;
[317] Fix | Delete
#endif
[318] Fix | Delete
[319] Fix | Delete
[320] Fix | Delete
/* Write formatted output to STREAM.
[321] Fix | Delete
[322] Fix | Delete
This function is a possible cancellation point and therefore not
[323] Fix | Delete
marked with __THROW. */
[324] Fix | Delete
extern int fprintf (FILE *__restrict __stream,
[325] Fix | Delete
const char *__restrict __format, ...);
[326] Fix | Delete
/* Write formatted output to stdout.
[327] Fix | Delete
[328] Fix | Delete
This function is a possible cancellation point and therefore not
[329] Fix | Delete
marked with __THROW. */
[330] Fix | Delete
extern int printf (const char *__restrict __format, ...);
[331] Fix | Delete
/* Write formatted output to S. */
[332] Fix | Delete
extern int sprintf (char *__restrict __s,
[333] Fix | Delete
const char *__restrict __format, ...) __THROWNL;
[334] Fix | Delete
[335] Fix | Delete
/* Write formatted output to S from argument list ARG.
[336] Fix | Delete
[337] Fix | Delete
This function is a possible cancellation point and therefore not
[338] Fix | Delete
marked with __THROW. */
[339] Fix | Delete
extern int vfprintf (FILE *__restrict __s, const char *__restrict __format,
[340] Fix | Delete
__gnuc_va_list __arg);
[341] Fix | Delete
/* Write formatted output to stdout from argument list ARG.
[342] Fix | Delete
[343] Fix | Delete
This function is a possible cancellation point and therefore not
[344] Fix | Delete
marked with __THROW. */
[345] Fix | Delete
extern int vprintf (const char *__restrict __format, __gnuc_va_list __arg);
[346] Fix | Delete
/* Write formatted output to S from argument list ARG. */
[347] Fix | Delete
extern int vsprintf (char *__restrict __s, const char *__restrict __format,
[348] Fix | Delete
__gnuc_va_list __arg) __THROWNL;
[349] Fix | Delete
[350] Fix | Delete
#if defined __USE_ISOC99 || defined __USE_UNIX98
[351] Fix | Delete
/* Maximum chars of output to write in MAXLEN. */
[352] Fix | Delete
extern int snprintf (char *__restrict __s, size_t __maxlen,
[353] Fix | Delete
const char *__restrict __format, ...)
[354] Fix | Delete
__THROWNL __attribute__ ((__format__ (__printf__, 3, 4)));
[355] Fix | Delete
[356] Fix | Delete
extern int vsnprintf (char *__restrict __s, size_t __maxlen,
[357] Fix | Delete
const char *__restrict __format, __gnuc_va_list __arg)
[358] Fix | Delete
__THROWNL __attribute__ ((__format__ (__printf__, 3, 0)));
[359] Fix | Delete
#endif
[360] Fix | Delete
[361] Fix | Delete
#if __GLIBC_USE (LIB_EXT2)
[362] Fix | Delete
/* Write formatted output to a string dynamically allocated with `malloc'.
[363] Fix | Delete
Store the address of the string in *PTR. */
[364] Fix | Delete
extern int vasprintf (char **__restrict __ptr, const char *__restrict __f,
[365] Fix | Delete
__gnuc_va_list __arg)
[366] Fix | Delete
__THROWNL __attribute__ ((__format__ (__printf__, 2, 0))) __wur;
[367] Fix | Delete
extern int __asprintf (char **__restrict __ptr,
[368] Fix | Delete
const char *__restrict __fmt, ...)
[369] Fix | Delete
__THROWNL __attribute__ ((__format__ (__printf__, 2, 3))) __wur;
[370] Fix | Delete
extern int asprintf (char **__restrict __ptr,
[371] Fix | Delete
const char *__restrict __fmt, ...)
[372] Fix | Delete
__THROWNL __attribute__ ((__format__ (__printf__, 2, 3))) __wur;
[373] Fix | Delete
#endif
[374] Fix | Delete
[375] Fix | Delete
#ifdef __USE_XOPEN2K8
[376] Fix | Delete
/* Write formatted output to a file descriptor. */
[377] Fix | Delete
extern int vdprintf (int __fd, const char *__restrict __fmt,
[378] Fix | Delete
__gnuc_va_list __arg)
[379] Fix | Delete
__attribute__ ((__format__ (__printf__, 2, 0)));
[380] Fix | Delete
extern int dprintf (int __fd, const char *__restrict __fmt, ...)
[381] Fix | Delete
__attribute__ ((__format__ (__printf__, 2, 3)));
[382] Fix | Delete
#endif
[383] Fix | Delete
[384] Fix | Delete
[385] Fix | Delete
/* Read formatted input from STREAM.
[386] Fix | Delete
[387] Fix | Delete
This function is a possible cancellation point and therefore not
[388] Fix | Delete
marked with __THROW. */
[389] Fix | Delete
extern int fscanf (FILE *__restrict __stream,
[390] Fix | Delete
const char *__restrict __format, ...) __wur;
[391] Fix | Delete
/* Read formatted input from stdin.
[392] Fix | Delete
[393] Fix | Delete
This function is a possible cancellation point and therefore not
[394] Fix | Delete
marked with __THROW. */
[395] Fix | Delete
extern int scanf (const char *__restrict __format, ...) __wur;
[396] Fix | Delete
/* Read formatted input from S. */
[397] Fix | Delete
extern int sscanf (const char *__restrict __s,
[398] Fix | Delete
const char *__restrict __format, ...) __THROW;
[399] Fix | Delete
[400] Fix | Delete
#if defined __USE_ISOC99 && !defined __USE_GNU \
[401] Fix | Delete
&& (!defined __LDBL_COMPAT || !defined __REDIRECT) \
[402] Fix | Delete
&& (defined __STRICT_ANSI__ || defined __USE_XOPEN2K)
[403] Fix | Delete
# ifdef __REDIRECT
[404] Fix | Delete
/* For strict ISO C99 or POSIX compliance disallow %as, %aS and %a[
[405] Fix | Delete
GNU extension which conflicts with valid %a followed by letter
[406] Fix | Delete
s, S or [. */
[407] Fix | Delete
extern int __REDIRECT (fscanf, (FILE *__restrict __stream,
[408] Fix | Delete
const char *__restrict __format, ...),
[409] Fix | Delete
__isoc99_fscanf) __wur;
[410] Fix | Delete
extern int __REDIRECT (scanf, (const char *__restrict __format, ...),
[411] Fix | Delete
__isoc99_scanf) __wur;
[412] Fix | Delete
extern int __REDIRECT_NTH (sscanf, (const char *__restrict __s,
[413] Fix | Delete
const char *__restrict __format, ...),
[414] Fix | Delete
__isoc99_sscanf);
[415] Fix | Delete
# else
[416] Fix | Delete
extern int __isoc99_fscanf (FILE *__restrict __stream,
[417] Fix | Delete
const char *__restrict __format, ...) __wur;
[418] Fix | Delete
extern int __isoc99_scanf (const char *__restrict __format, ...) __wur;
[419] Fix | Delete
extern int __isoc99_sscanf (const char *__restrict __s,
[420] Fix | Delete
const char *__restrict __format, ...) __THROW;
[421] Fix | Delete
# define fscanf __isoc99_fscanf
[422] Fix | Delete
# define scanf __isoc99_scanf
[423] Fix | Delete
# define sscanf __isoc99_sscanf
[424] Fix | Delete
# endif
[425] Fix | Delete
#endif
[426] Fix | Delete
[427] Fix | Delete
#ifdef __USE_ISOC99
[428] Fix | Delete
/* Read formatted input from S into argument list ARG.
[429] Fix | Delete
[430] Fix | Delete
This function is a possible cancellation point and therefore not
[431] Fix | Delete
marked with __THROW. */
[432] Fix | Delete
extern int vfscanf (FILE *__restrict __s, const char *__restrict __format,
[433] Fix | Delete
__gnuc_va_list __arg)
[434] Fix | Delete
__attribute__ ((__format__ (__scanf__, 2, 0))) __wur;
[435] Fix | Delete
[436] Fix | Delete
/* Read formatted input from stdin into argument list ARG.
[437] Fix | Delete
[438] Fix | Delete
This function is a possible cancellation point and therefore not
[439] Fix | Delete
marked with __THROW. */
[440] Fix | Delete
extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg)
[441] Fix | Delete
__attribute__ ((__format__ (__scanf__, 1, 0))) __wur;
[442] Fix | Delete
[443] Fix | Delete
/* Read formatted input from S into argument list ARG. */
[444] Fix | Delete
extern int vsscanf (const char *__restrict __s,
[445] Fix | Delete
const char *__restrict __format, __gnuc_va_list __arg)
[446] Fix | Delete
__THROW __attribute__ ((__format__ (__scanf__, 2, 0)));
[447] Fix | Delete
[448] Fix | Delete
# if !defined __USE_GNU \
[449] Fix | Delete
&& (!defined __LDBL_COMPAT || !defined __REDIRECT) \
[450] Fix | Delete
&& (defined __STRICT_ANSI__ || defined __USE_XOPEN2K)
[451] Fix | Delete
# ifdef __REDIRECT
[452] Fix | Delete
/* For strict ISO C99 or POSIX compliance disallow %as, %aS and %a[
[453] Fix | Delete
GNU extension which conflicts with valid %a followed by letter
[454] Fix | Delete
s, S or [. */
[455] Fix | Delete
extern int __REDIRECT (vfscanf,
[456] Fix | Delete
(FILE *__restrict __s,
[457] Fix | Delete
const char *__restrict __format, __gnuc_va_list __arg),
[458] Fix | Delete
__isoc99_vfscanf)
[459] Fix | Delete
__attribute__ ((__format__ (__scanf__, 2, 0))) __wur;
[460] Fix | Delete
extern int __REDIRECT (vscanf, (const char *__restrict __format,
[461] Fix | Delete
__gnuc_va_list __arg), __isoc99_vscanf)
[462] Fix | Delete
__attribute__ ((__format__ (__scanf__, 1, 0))) __wur;
[463] Fix | Delete
extern int __REDIRECT_NTH (vsscanf,
[464] Fix | Delete
(const char *__restrict __s,
[465] Fix | Delete
const char *__restrict __format,
[466] Fix | Delete
__gnuc_va_list __arg), __isoc99_vsscanf)
[467] Fix | Delete
__attribute__ ((__format__ (__scanf__, 2, 0)));
[468] Fix | Delete
# else
[469] Fix | Delete
extern int __isoc99_vfscanf (FILE *__restrict __s,
[470] Fix | Delete
const char *__restrict __format,
[471] Fix | Delete
__gnuc_va_list __arg) __wur;
[472] Fix | Delete
extern int __isoc99_vscanf (const char *__restrict __format,
[473] Fix | Delete
__gnuc_va_list __arg) __wur;
[474] Fix | Delete
extern int __isoc99_vsscanf (const char *__restrict __s,
[475] Fix | Delete
const char *__restrict __format,
[476] Fix | Delete
__gnuc_va_list __arg) __THROW;
[477] Fix | Delete
# define vfscanf __isoc99_vfscanf
[478] Fix | Delete
# define vscanf __isoc99_vscanf
[479] Fix | Delete
# define vsscanf __isoc99_vsscanf
[480] Fix | Delete
# endif
[481] Fix | Delete
# endif
[482] Fix | Delete
#endif /* Use ISO C9x. */
[483] Fix | Delete
[484] Fix | Delete
[485] Fix | Delete
/* Read a character from STREAM.
[486] Fix | Delete
[487] Fix | Delete
These functions are possible cancellation points and therefore not
[488] Fix | Delete
marked with __THROW. */
[489] Fix | Delete
extern int fgetc (FILE *__stream);
[490] Fix | Delete
extern int getc (FILE *__stream);
[491] Fix | Delete
[492] Fix | Delete
/* Read a character from stdin.
[493] Fix | Delete
[494] Fix | Delete
This function is a possible cancellation point and therefore not
[495] Fix | Delete
marked with __THROW. */
[496] Fix | Delete
extern int getchar (void);
[497] Fix | Delete
[498] Fix | Delete
#ifdef __USE_POSIX199506
[499] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function