From e81907a3d5c8af8a87e19492548e4aab55e84985 Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Mon, 9 May 2016 20:34:45 +0200 Subject: rename strutil to gensvm_strutil --- include/gensvm_strutil.h | 31 +++++++++++++++++++++++++++++++ include/strutil.h | 31 ------------------------------- 2 files changed, 31 insertions(+), 31 deletions(-) create mode 100644 include/gensvm_strutil.h delete mode 100644 include/strutil.h (limited to 'include') diff --git a/include/gensvm_strutil.h b/include/gensvm_strutil.h new file mode 100644 index 0000000..2255d6e --- /dev/null +++ b/include/gensvm_strutil.h @@ -0,0 +1,31 @@ +/** + * @file strutil.h + * @author Gertjan van den Burg + * @date August, 2013 + * @brief Header file for strutil.c + * + * @details + * Function declarations for useful string functions used in parsing + * input files. + * + */ + +#ifndef GENSVM_STRUTIL_H +#define GENSVM_STRUTIL_H + +#include "globals.h" +#include "types.h" + +bool str_startswith(const char *str, const char *pre); +bool str_endswith(const char *str, const char *suf); + +void next_line(FILE *fid, char *filename); +void get_line(FILE *fid, char *filename, char *buffer); + +double get_fmt_double(FILE *fid, char *filename, const char *fmt); +long get_fmt_long(FILE *fid, char *filename, const char *fmt); + +long all_doubles_str(char *buffer, long offset, double *all_doubles); +long all_longs_str(char *buffer, long offset, long *all_longs); + +#endif diff --git a/include/strutil.h b/include/strutil.h deleted file mode 100644 index 740fde1..0000000 --- a/include/strutil.h +++ /dev/null @@ -1,31 +0,0 @@ -/** - * @file strutil.h - * @author Gertjan van den Burg - * @date August, 2013 - * @brief Header file for strutil.c - * - * @details - * Function declarations for useful string functions used in parsing - * input files. - * - */ - -#ifndef STRUTIL_H -#define STRUTIL_H - -#include "globals.h" -#include "types.h" - -bool str_startswith(const char *str, const char *pre); -bool str_endswith(const char *str, const char *suf); - -void next_line(FILE *fid, char *filename); -void get_line(FILE *fid, char *filename, char *buffer); - -double get_fmt_double(FILE *fid, char *filename, const char *fmt); -long get_fmt_long(FILE *fid, char *filename, const char *fmt); - -long all_doubles_str(char *buffer, long offset, double *all_doubles); -long all_longs_str(char *buffer, long offset, long *all_longs); - -#endif -- cgit v1.2.3