STDIO - standard I/O package definitions.

Usage:

#include <stdio.h>

Description:

This file contains definitions and declarations that are needed to perform various I/O routines. Important manifests include the following:

EOF
The "int" constant returned by "getchar" and other functions to indicate end-of-file.
FILENAME_MAX
The size needed for a "char" array that can hold the longest file name the program guarantees it can open.
FOPEN_MAX
The maximum number of files that a program may have open simultaneously. Note that a given program may not be able to open FOPEN_MAX files, since there may already be other files in your AFT.
L_tmpnam
The size needed for a "char" array that can hold the file names generated by "tmpnam".
TMP_MAX
The maximum number of unique file names that can be generated by the "tmpnam" function.
SEEK_CUR, SEEK_END, SEEK_SET
Symbols used by "fseek".

The following function prototypes are included in <stdio.h>:

void   clearerr(FILE *stream);
int    fclose(FILE *stream);
int    feof(FILE *stream);
int    fflush(FILE *stream);
int    fgetc(FILE *stream);
int    fgetpos(FILE *stream, fpos_t *pos);
char * fgets(char *s, int n, FILE *stream);
int    ferror(FILE *stream);
FILE * fopen(const char *pathname, const char *type);
int    fprintf(FILE *stream, const char *format, ...);
int    fputc(int c, FILE *stream);
int    fputs(const char *s, FILE *stream);
size_t fread(void *ptr, size_t size, size_t nmemb,
             FILE *stream);
FILE * freopen(const char *pathname, const char *type,
             FILE *stream);
int    fscanf(FILE *stream, const char *format, ...);
int    fseek(FILE *stream, long int offset, int ptrname);
int    fsetpos(FILE *stream, const fpos_t *pos);
long   ftell(FILE *stream);
size_t fwrite(const void *ptr, size_t size, size_t nmemb,
             FILE *stream);
int    getc(FILE *stream);
int    getchar(void);
char * gets(char *s);
void   perror(const char *s);
int    printf(const char *format, ...);
int    putc(int c, FILE *stream);
int    putchar(int c);
int    puts(const char *s);
int    remove(const char *pathname);
int    rename(const char *old, const char *_new);
void   rewind(FILE *stream);
int    scanf(const char *format, ... );
void   setbuf(FILE *stream, char *buf);
int    setvbuf(FILE *stream, char *buf, int type,
              size_t size);
int    sprintf(char *s, const char *format, ...);
int    sscanf(const char *s, const char *format, ...);
FILE * tmpfile(void);
char * tmpnam(char *s);
int    ungetc(int c, FILE *stream);
int    vfprintf(FILE *stream, const char *format,
              va_list arg);
int    vprintf(const char *format, va_list arg);
int    vsprintf(char *s, const char *format, va_list arg);

Copyright © 1996, Thinkage Ltd.