Main Page | Data Structures | Directories | File List | Globals

mqfile.h

Go to the documentation of this file.
00001 #ifndef _MQFILE_H_
00002 #define _MQFILE_H_
00003 
00004 /* Copyright (c) Kyriacos Leptos and the President and Fellows of Harvard University
00005    Release Date: 2004-11-01
00006    Part of the MapQuant suite library "mqbasic.lib" 
00007 */
00008 
00018 #define UNDERSCORE  "_"
00019 #define COMMENT_CHAR '#'
00020 #define HEADER_CHAR  '>'
00021 
00022 #define MAX_LINE_LENGTH         1000
00023 
00024 extern char FILE_LINE[MAX_LINE_LENGTH];
00025 
00026 #define FOR_EACH_LINE(fp) while(fgets(FILE_LINE, MAX_LINE_LENGTH, (fp)) != NULL)
00027 
00028 int     MQFile_isLineComment(char* line);
00029 int     MQFile_isLineHeader (char* line);
00030 int     MQFile_isLineEmpty(char* line);
00031 //int       MQFile_countLines(FILE* fp);
00032 int     MQFile_countNoEmptyNoCommentLines(FILE* fp);
00033 char*   MQFile_loadAsString(char* filename);
00034 void    MQFile_fwrite(FILE* out, char* szMSARFilename);
00035 
00036 int     checkln(char* line);
00037 int     checkcommln(char* line);
00038 int     checkheaderln(char* line);
00039 void    chomp(char* string);
00040 int     isLineEmpty(char* line);
00041 
00042 #endif
00043 

Generated on Tue Feb 7 03:25:43 2006 for libmqbasic by  doxygen 1.4.4