/****************************************************************************** * csv.h ****************************************************************************** * dbf Reader and Converter for dBASE files * Author: Bjoern Berg * ****************************************************************************** * This includes enable dbf to write CSV files ****************************************************************************** * History: * $Log: csv.h,v $ * Revision 1.4 2003/11/11 15:07:08 rollin_hand * added cvs keyword log: * * ******************************************************************************/ #ifndef _ANUBISNET_CSV_ #define _ANUBISNET_CSV_ #include #include #include #include #ifdef __unix__ #include #include #define NEWLINE_LENGTH 1 #elif __MSDOS__ || _WIN32 #include #include #define NEWLINE_LENGTH 2 #else #define NEWLINE_LENGTH 1 #endif /* * Special anubisnet includes */ #include "tables.h" #include "an_string.h" #include "dbf.h" int setCSVSep (FILE *fp, const struct DB_FIELD * header, int header_length, const char *input, const char *separator); int writeCSVHeader (FILE *fp, const struct DB_FIELD * header, int header_length, const char *input, const char *output); int writeCSVLine (FILE *fp, const struct DB_FIELD * header, const unsigned char *value, int header_length, const char *input, const char *output); #endif