Eneboo - Documentación para desarrolladores
|
00001 /*********************************************************************************** 00002 * iodbf.h 00003 * inherits the standard I/O file commands 00004 * Author: Bjoern Berg, September 2002 00005 * Email: clergyman@gmx.de 00006 * dbf Reader and Converter for dBase 3 00007 * Version 0.2 00008 * 00009 * History: 00010 * 2003-02-16 jones Added another default for the #ifdef OS block .. 00011 * - Version 0.1 - September 2002 00012 * first implementation 00013 ************************************************************************************/ 00014 00015 #ifndef _DBF_IO_ 00016 #define _DBF_IO_ 00017 00018 #include <stdio.h> 00019 #include <stdlib.h> 00020 #include <fcntl.h> 00021 #ifdef __unix__ 00022 # include <sys/stat.h> 00023 # include <unistd.h> 00024 #elif __MSDOS__ 00025 # include <io.h> 00026 # include <sys/stat.h> 00027 #elif _WIN32 00028 # include <io.h> 00029 # include <sys/stat.h> 00030 #else 00031 # include <sys/stat.h> 00032 # include <unistd.h> 00033 # include <stdlib.h> 00034 #endif 00035 #ifndef O_BINARY 00036 #define O_BINARY 0 00037 #endif 00038 00039 int dbf_open (const char *file); 00040 int dbf_close (int fh, const char *file); 00041 FILE * export_open (const char *file); 00042 int export_close (FILE *fp, const char *file); 00043 00044 #endif