From daf3f8706b4af12ea8ad737461470d49c55a8c8a Mon Sep 17 00:00:00 2001 From: Al Date: Tue, 17 Mar 2015 18:35:45 -0400 Subject: [PATCH] [utils] adding tab and comma constants to file_utils for parsing CSV/TSV files --- src/file_utils.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/file_utils.h b/src/file_utils.h index 22536eca..cfa4cc25 100644 --- a/src/file_utils.h +++ b/src/file_utils.h @@ -24,6 +24,12 @@ extern "C" { #define PATH_SEPERATOR_LEN strlen(PATH_SEPERATOR) +#define TAB_SEPARATOR "\t" +#define TAB_SEPARATOR_LEN strlen(TAB_SEPARATOR) + +#define COMMA_SEPARATOR "," +#define COMMA_SEPARATOR_LEN strlen(COMMA_SEPARATOR) + char *file_getline(FILE * f); bool is_relative_path(struct dirent *ent);