OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [newlib/] [libc/] [stdio/] [stdio.tex] - Diff between revs 148 and 158

Only display areas with differences | Details | Blame | View Log

Rev 148 Rev 158
@node Stdio
@node Stdio
@chapter Input and Output (@file{stdio.h})
@chapter Input and Output (@file{stdio.h})
 
 
This chapter comprises functions to manage files
This chapter comprises functions to manage files
or other input/output streams. Among these functions are subroutines
or other input/output streams. Among these functions are subroutines
to generate or scan strings according to specifications from a format string.
to generate or scan strings according to specifications from a format string.
 
 
The underlying facilities for input and output depend on the host
The underlying facilities for input and output depend on the host
system, but these functions provide a uniform interface.
system, but these functions provide a uniform interface.
 
 
The corresponding declarations are in @file{stdio.h}.
The corresponding declarations are in @file{stdio.h}.
 
 
The reentrant versions of these functions use macros
The reentrant versions of these functions use macros
 
 
@example
@example
_stdin_r(@var{reent})
_stdin_r(@var{reent})
_stdout_r(@var{reent})
_stdout_r(@var{reent})
_stderr_r(@var{reent})
_stderr_r(@var{reent})
@end example
@end example
 
 
@noindent
@noindent
instead of the globals @code{stdin}, @code{stdout}, and
instead of the globals @code{stdin}, @code{stdout}, and
@code{stderr}.  The argument <[reent]> is a pointer to a reentrancy
@code{stderr}.  The argument <[reent]> is a pointer to a reentrancy
structure.
structure.
 
 
@menu
@menu
* clearerr::    Clear file or stream error indicator
* clearerr::    Clear file or stream error indicator
* diprintf::    Print to a file descriptor (integer only)
* diprintf::    Print to a file descriptor (integer only)
* dprintf::     Print to a file descriptor
* dprintf::     Print to a file descriptor
* fclose::      Close a file
* fclose::      Close a file
* fcloseall::   Close all files
* fcloseall::   Close all files
* fdopen::      Turn an open file into a stream
* fdopen::      Turn an open file into a stream
* feof::        Test for end of file
* feof::        Test for end of file
* ferror::      Test whether read/write error has occurred
* ferror::      Test whether read/write error has occurred
* fflush::      Flush buffered file output
* fflush::      Flush buffered file output
* fgetc::       Get a character from a file or stream
* fgetc::       Get a character from a file or stream
* fgetpos::     Record position in a stream or file
* fgetpos::     Record position in a stream or file
* fgets::       Get character string from a file or stream
* fgets::       Get character string from a file or stream
* fgetwc::      Get a wide character from a file or stream
* fgetwc::      Get a wide character from a file or stream
* fgetws::      Get a wide character string from a file or stream
* fgetws::      Get a wide character string from a file or stream
* fileno::      Get file descriptor associated with stream
* fileno::      Get file descriptor associated with stream
* fmemopen::    Open a stream around a fixed-length buffer
* fmemopen::    Open a stream around a fixed-length buffer
* fopen::       Open a file
* fopen::       Open a file
* fopencookie:: Open a stream with custom callbacks
* fopencookie:: Open a stream with custom callbacks
* fputc::       Write a character on a stream or file
* fputc::       Write a character on a stream or file
* fputs::       Write a character string in a file or stream
* fputs::       Write a character string in a file or stream
* fputwc::      Write a wide character to a file or stream
* fputwc::      Write a wide character to a file or stream
* fputws::      Write a wide character string to a file or stream
* fputws::      Write a wide character string to a file or stream
* fread::       Read array elements from a file
* fread::       Read array elements from a file
* freopen::     Open a file using an existing file descriptor
* freopen::     Open a file using an existing file descriptor
* fseek::       Set file position
* fseek::       Set file position
* fsetpos::     Restore position of a stream or file
* fsetpos::     Restore position of a stream or file
* ftell::       Return position in a stream or file
* ftell::       Return position in a stream or file
* funopen::     Open a stream with custom callbacks
* funopen::     Open a stream with custom callbacks
* fwide::       Set and determine the orientation of a FILE stream
* fwide::       Set and determine the orientation of a FILE stream
* fwrite::      Write array elements from memory to a file or stream
* fwrite::      Write array elements from memory to a file or stream
* getc::        Get a character from a file or stream (macro)
* getc::        Get a character from a file or stream (macro)
* getc_unlocked::       Get a character from a file or stream (macro)
* getc_unlocked::       Get a character from a file or stream (macro)
* getchar::     Get a character from standard input (macro)
* getchar::     Get a character from standard input (macro)
* getchar_unlocked::    Get a character from standard input (macro)
* getchar_unlocked::    Get a character from standard input (macro)
* getdelim::    Get character string from a file or stream
* getdelim::    Get character string from a file or stream
* getline::     Get character string from a file or stream
* getline::     Get character string from a file or stream
* gets::        Get character string from standard input (obsolete)
* gets::        Get character string from standard input (obsolete)
* getw::        Get a word (int) from a file or stream
* getw::        Get a word (int) from a file or stream
* getwchar::    Get a wide character from standard input
* getwchar::    Get a wide character from standard input
* mktemp::      Generate unused file name
* mktemp::      Generate unused file name
* open_memstream::      Open a write stream around an arbitrary-length buffer
* open_memstream::      Open a write stream around an arbitrary-length buffer
* perror::      Print an error message on standard error
* perror::      Print an error message on standard error
* putc::        Write a character on a stream or file (macro)
* putc::        Write a character on a stream or file (macro)
* putc_unlocked::       Write a character on a stream or file (macro)
* putc_unlocked::       Write a character on a stream or file (macro)
* putchar::     Write a character on standard output (macro)
* putchar::     Write a character on standard output (macro)
* putchar_unlocked::    Write a character on standard output (macro)
* putchar_unlocked::    Write a character on standard output (macro)
* puts::        Write a character string on standard output
* puts::        Write a character string on standard output
* putw::        Write a word (int) to a file or stream
* putw::        Write a word (int) to a file or stream
* putwchar::    Write a wide character to standard output
* putwchar::    Write a wide character to standard output
* remove::      Delete a file's name
* remove::      Delete a file's name
* rename::      Rename a file
* rename::      Rename a file
* rewind::      Reinitialize a file or stream
* rewind::      Reinitialize a file or stream
* setbuf::      Specify full buffering for a file or stream
* setbuf::      Specify full buffering for a file or stream
* setbuffer::   Specify full buffering for a file or stream with size
* setbuffer::   Specify full buffering for a file or stream with size
* setlinebuf::  Specify line buffering for a file or stream
* setlinebuf::  Specify line buffering for a file or stream
* setvbuf::     Specify buffering for a file or stream
* setvbuf::     Specify buffering for a file or stream
* siprintf::    Write formatted output (integer only)
* siprintf::    Write formatted output (integer only)
* siscanf::     Scan and format input (integer only)
* siscanf::     Scan and format input (integer only)
* sprintf::     Write formatted output
* sprintf::     Write formatted output
* sscanf::      Scan and format input
* sscanf::      Scan and format input
* tmpfile::     Create a temporary file
* tmpfile::     Create a temporary file
* tmpnam::      Generate name for a temporary file
* tmpnam::      Generate name for a temporary file
* ungetc::      Push data back into a stream
* ungetc::      Push data back into a stream
* ungetwc::     Push wide character data back into a stream
* ungetwc::     Push wide character data back into a stream
* vfprintf::    Format variable argument list
* vfprintf::    Format variable argument list
* vfscanf::     Scan variable argument list
* vfscanf::     Scan variable argument list
* viprintf::    Format variable argument list (integer only)
* viprintf::    Format variable argument list (integer only)
* viscanf::     Scan variable format list (integer only)
* viscanf::     Scan variable format list (integer only)
@end menu
@end menu
 
 
@page
@page
@include stdio/clearerr.def
@include stdio/clearerr.def
 
 
@page
@page
@include stdio/diprintf.def
@include stdio/diprintf.def
 
 
@page
@page
@include stdio/dprintf.def
@include stdio/dprintf.def
 
 
@page
@page
@include stdio/fclose.def
@include stdio/fclose.def
 
 
@page
@page
@include stdio/fcloseall.def
@include stdio/fcloseall.def
 
 
@page
@page
@include stdio/fdopen.def
@include stdio/fdopen.def
 
 
@page
@page
@include stdio/feof.def
@include stdio/feof.def
 
 
@page
@page
@include stdio/ferror.def
@include stdio/ferror.def
 
 
@page
@page
@include stdio/fflush.def
@include stdio/fflush.def
 
 
@page
@page
@include stdio/fgetc.def
@include stdio/fgetc.def
 
 
@page
@page
@include stdio/fgetpos.def
@include stdio/fgetpos.def
 
 
@page
@page
@include stdio/fgets.def
@include stdio/fgets.def
 
 
@page
@page
@include stdio/fgetwc.def
@include stdio/fgetwc.def
 
 
@page
@page
@include stdio/fgetws.def
@include stdio/fgetws.def
 
 
@page
@page
@include stdio/fileno.def
@include stdio/fileno.def
 
 
@page
@page
@include stdio/fmemopen.def
@include stdio/fmemopen.def
 
 
@page
@page
@include stdio/fopen.def
@include stdio/fopen.def
 
 
@page
@page
@include stdio/fopencookie.def
@include stdio/fopencookie.def
 
 
@page
@page
@include stdio/fputc.def
@include stdio/fputc.def
 
 
@page
@page
@include stdio/fputs.def
@include stdio/fputs.def
 
 
@page
@page
@include stdio/fputwc.def
@include stdio/fputwc.def
 
 
@page
@page
@include stdio/fputws.def
@include stdio/fputws.def
 
 
@page
@page
@include stdio/fread.def
@include stdio/fread.def
 
 
@page
@page
@include stdio/freopen.def
@include stdio/freopen.def
 
 
@page
@page
@include stdio/fseek.def
@include stdio/fseek.def
 
 
@page
@page
@include stdio/fsetpos.def
@include stdio/fsetpos.def
 
 
@page
@page
@include stdio/ftell.def
@include stdio/ftell.def
 
 
@page
@page
@include stdio/funopen.def
@include stdio/funopen.def
 
 
@page
@page
@include stdio/fwide.def
@include stdio/fwide.def
 
 
@page
@page
@include stdio/fwrite.def
@include stdio/fwrite.def
 
 
@page
@page
@include stdio/getc.def
@include stdio/getc.def
 
 
@page
@page
@include stdio/getc_u.def
@include stdio/getc_u.def
 
 
@page
@page
@include stdio/getchar.def
@include stdio/getchar.def
 
 
@page
@page
@include stdio/getchar_u.def
@include stdio/getchar_u.def
 
 
@page
@page
@include stdio/getdelim.def
@include stdio/getdelim.def
 
 
@page
@page
@include stdio/getline.def
@include stdio/getline.def
 
 
@page
@page
@include stdio/gets.def
@include stdio/gets.def
 
 
@page
@page
@include stdio/getw.def
@include stdio/getw.def
 
 
@page
@page
@include stdio/getwchar.def
@include stdio/getwchar.def
 
 
@page
@page
@include stdio/mktemp.def
@include stdio/mktemp.def
 
 
@page
@page
@include stdio/open_memstream.def
@include stdio/open_memstream.def
 
 
@page
@page
@include stdio/perror.def
@include stdio/perror.def
 
 
@page
@page
@include stdio/putc.def
@include stdio/putc.def
 
 
@page
@page
@include stdio/putc_u.def
@include stdio/putc_u.def
 
 
@page
@page
@include stdio/putchar.def
@include stdio/putchar.def
 
 
@page
@page
@include stdio/putchar_u.def
@include stdio/putchar_u.def
 
 
@page
@page
@include stdio/puts.def
@include stdio/puts.def
 
 
@page
@page
@include stdio/putw.def
@include stdio/putw.def
 
 
@page
@page
@include stdio/putwchar.def
@include stdio/putwchar.def
 
 
@page
@page
@include stdio/remove.def
@include stdio/remove.def
 
 
@page
@page
@include stdio/rename.def
@include stdio/rename.def
 
 
@page
@page
@include stdio/rewind.def
@include stdio/rewind.def
 
 
@page
@page
@include stdio/setbuf.def
@include stdio/setbuf.def
 
 
@page
@page
@include stdio/setbuffer.def
@include stdio/setbuffer.def
 
 
@page
@page
@include stdio/setlinebuf.def
@include stdio/setlinebuf.def
 
 
@page
@page
@include stdio/setvbuf.def
@include stdio/setvbuf.def
 
 
@page
@page
@include stdio/siprintf.def
@include stdio/siprintf.def
 
 
@page
@page
@include stdio/siscanf.def
@include stdio/siscanf.def
 
 
@page
@page
@include stdio/sprintf.def
@include stdio/sprintf.def
 
 
@page
@page
@include stdio/sscanf.def
@include stdio/sscanf.def
 
 
@page
@page
@include stdio/tmpfile.def
@include stdio/tmpfile.def
 
 
@page
@page
@include stdio/tmpnam.def
@include stdio/tmpnam.def
 
 
@page
@page
@include stdio/ungetc.def
@include stdio/ungetc.def
 
 
@page
@page
@include stdio/ungetwc.def
@include stdio/ungetwc.def
 
 
@page
@page
@include stdio/vfprintf.def
@include stdio/vfprintf.def
 
 
@page
@page
@include stdio/vfscanf.def
@include stdio/vfscanf.def
 
 
@page
@page
@include stdio/viprintf.def
@include stdio/viprintf.def
 
 
@page
@page
@include stdio/viscanf.def
@include stdio/viscanf.def
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.