#include <stdlib.h>#include <string.h>#include <errno.h>#include "fileinputstream.h"#include "xmlcpg.h"Compounds | |
| struct | xmlcpgFILEINPUTSTREAM |
Functions | |
| xmlcpgFileInputStream * | xmlcpgnewFileInputStreamFILE (FILE *f) |
| Creates a new file input stream with a FILE stream. | |
| xmlcpgFileInputStream * | xmlcpgnewFileInputStreamString (const char *name) |
| Creates a new file input stream with a file name. | |
| xmlcpgFileInputStream * | xmlcpgnewFileInputStreamFD (int fd) |
| Creates a new file input stream with a file descriptor. | |
| void | xmlcpgdeleteFileInputStream (xmlcpgFileInputStream *is) |
| Destroys the file input stream. | |
| int | xmlcpgisFileInputStream (const xmlcpgFileInputStream *is) |
| Tells if the the object is a file input stream. | |
| int | xmlcpggetFileInputStreamFD (const xmlcpgFileInputStream *is) |
| Gets the file input stream file descriptor. | |
| int | xmlcpggetFileInputStreamEOS (const xmlcpgFileInputStream *is) |
| Tests the end of stream indicator of the file input stream. | |
| int | xmlcpgreadFileInputStreamChar (xmlcpgFileInputStream *is) |
| Reads a character from the file input stream. | |
| int | xmlcpgreadFileInputStream (xmlcpgFileInputStream *is, void *ptr, int nbytes) |
| Reads some bytes of data into the location pointed by ptr. | |
| int | xmlcpgcloseFileInputStream (xmlcpgFileInputStream *is) |
| Closes the file input stream. | |
| int | xmlcpggetFileInputStreamError (const xmlcpgFileInputStream *is) |
| Tests the error indicator of the file input stream. | |
| const char * | xmlcpggetFileInputStreamErrorString (const xmlcpgFileInputStream *is) |
| Gets the string describing the error. | |
|
|
Closes the file input stream.
|
|
|
Destroys the file input stream. The stream must be closed before with the xmlcpgcloseFileInputStream function.
|
|
|
Tests the end of stream indicator of the file input stream.
|
|
|
Tests the error indicator of the file input stream.
|
|
|
Gets the string describing the error.
|
|
|
Gets the file input stream file descriptor.
|
|
|
Tells if the the object is a file input stream.
|
|
|
Creates a new file input stream with a file descriptor.
|
|
|
Creates a new file input stream with a FILE stream.
|
|
|
Creates a new file input stream with a file name.
|
|
||||||||||||||||
|
Reads some bytes of data into the location pointed by ptr.
|
|
|
Reads a character from the file input stream.
|
1.2.18