Standard C++ Library Reference ISO/IEC (VERSION3)

ftell
long ftell(FILE *stream);
The function returns an encoded form of the file-position indicator for the stream stream or
stores a positive value in errno and returns the value -1. For a binary file, a successful return
value gives the number of bytes from the beginning of the file. For a text file, target
environments can vary on the representation and range of encoded file-position indicator
values.
fwrite
size_t fwrite(const void *ptr,
size_t size, size_t nelem, FILE *stream);
The function writes characters to the output stream stream, accessing values from successive
elements of the array whose first element has the address (char *)ptr until the function
writes size*nelem characters or sets the error indicator. It returns n/size, where n is the
number of characters it wrote. If the function sets the error indicator, the file-position indicator
is indeterminate.
getc
int getc(FILE *stream);
The function has the same effect as fgetc(stream) except that a macro version of getc
can evaluate stream more than once.
getchar
int getchar(void);
The function has the same effect as fgetc(stdin), reading a character from the stream
stdin
gets
char *gets(char *s);
The function reads characters from the stream stdin and stores them in successive elements of
the array whose first element has the address s until the function reads an NL character (which
is not stored) or sets the end-of-file or error indicator. If gets reads any characters, it
concludes by storing a null character in the next element of the array. It returns s if it reads any