#include <comprex.h>
Go to the source code of this file.
Functions | |
CxFile * | cxOpenFile (const char *path, CxAccessMode mode) |
Opens a file from a local or remote filesystem, or in an archive. | |
void | cxCloseFile (CxFile *file) |
Closes a file. | |
size_t | cxRead (void *ptr, size_t size, size_t nmemb, CxFile *file) |
Reads data from a file. | |
size_t | cxWrite (const void *ptr, size_t size, size_t nmemb, CxFile *file) |
Writes data to a file. | |
void | cxClearErr (CxFile *file) |
Clears the error flag and end-of-file indicator. | |
int | cxEof (CxFile *file) |
Tests the end-of-file indicator. | |
int | cxError (CxFile *file) |
Tests the error indicator of the file. | |
const char * | cxStrError (CxFile *file, int errnum) |
Returns a string representation of the error. |
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.
You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
Clears the error flag and end-of-file indicator.
|
|
Closes a file. The CxFile structure will be deleted after this is called.
|
|
Tests the end-of-file indicator.
|
|
Tests the error indicator of the file.
|
|
Opens a file from a local or remote filesystem, or in an archive.
|
|
Reads data from a file.
|
|
Returns a string representation of the error.
|
|
Writes data to a file.
|