C Standard Libraries C++

<cstdio>

Overview

Macros

BUFSIZ


Definition

#define BUFSIZ  512

Description

This macro defines the buffer size used for file I/O.


EOF


Definition

#define EOF (-1)

Description

This value signals the end of a file when reading in byte data.


WEOF


Definition

#define WEOF (wint_t)(0xFFFF)

Description

This value signals the end of a file when reading in wide-character data.


stdin


Definition

#define stdin (&__iob_func()[0])

Description

The macro "stdin" is replaced by a Microsoft-specific function pointer, which returns a "FILE" pointer. In practice, "stdin" is typically used to get input from the keyboard.


stdout


Definition

#define stdout (&__iob_func()[1])

Description

The macro "stdout" is replaced by a Microsoft-specific function pointer, which returns a "FILE" pointer. In practice, "stdout" is typically used to output to the console window.


stderr


Definition

#define stderr (&__iob_func()[2])

Description

The macro "stderr" is replaced by a Microsoft-specific function pointer, which returns a "FILE" pointer. In practice, "stderr" is typically used to output error messages to the console window.


Types

fpos_t


Definition

typedef long fpos_t;

Description

This type defines the position of the file pointer in a file. In recent versions, this type will be defined as a 64 bit int.


FILE


Definition

typedef struct _iobuf FILE;

Description

This type defines the file type for file input and output.


Microsoft Version

struct _iobuf {
    char *_ptr;
    int   _cnt;
    char *_base;
    int   _flag;
    int   _file;
    int   _charbuf;
    int   _bufsiz;
    char *_tmpfname;
};
 

© 2007–2024 XoaX.net LLC. All rights reserved.