1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/**
* @file gensvm_strutil.h
* @author Gertjan van den Burg
* @date August, 2013
* @brief Header file for gensvm_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"
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
|