diff options
| author | Gertjan van den Burg <burg@ese.eur.nl> | 2013-10-18 15:48:59 +0200 |
|---|---|---|
| committer | Gertjan van den Burg <burg@ese.eur.nl> | 2013-10-18 15:48:59 +0200 |
| commit | 6d064658f8ae7ca0f42fef6dcc7f896144e9637b (patch) | |
| tree | a41e8793f71f637b68f862220ae5566f4537073d /include/strutil.h | |
| parent | allow seeding of V and added documentation (diff) | |
| download | gensvm-6d064658f8ae7ca0f42fef6dcc7f896144e9637b.tar.gz gensvm-6d064658f8ae7ca0f42fef6dcc7f896144e9637b.zip | |
restart using git
Diffstat (limited to 'include/strutil.h')
| -rw-r--r-- | include/strutil.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/strutil.h b/include/strutil.h new file mode 100644 index 0000000..66722ae --- /dev/null +++ b/include/strutil.h @@ -0,0 +1,19 @@ +#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 |
