Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Related Pages  

file_api.h

Go to the documentation of this file.
00001 
00023 #ifndef _LIBCOMPREX_FILE_API_H_
00024 #define _LIBCOMPREX_FILE_API_H_
00025 
00026 #include <comprex.h>
00027 
00028 #ifdef __cplusplus
00029 extern "C" {
00030 #endif
00031 
00040 CxFile *cxOpenFile(const char *path, CxAccessMode mode);
00041 
00049 void cxCloseFile(CxFile *file);
00050 
00061 size_t cxRead(void *ptr, size_t size, size_t nmemb, CxFile *file);
00062 
00073 size_t cxWrite(const void *ptr, size_t size, size_t nmemb, CxFile *file);
00074 
00080 void cxClearErr(CxFile *file);
00081 
00089 int cxEof(CxFile *file);
00090 
00098 int cxError(CxFile *file);
00099 
00108 const char *cxStrError(CxFile *file, int errnum);
00109 
00110 #ifdef __cplusplus
00111 }
00112 #endif
00113 
00114 #endif /* _LIBCOMPREX_FILE_API_H_ */
00115 

Generated on Wed May 29 12:20:35 2002 for libcomprex by doxygen1.2.15-20020430