Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (22 sloc) 1.4 KB
/* str*()-like functions for raw memory "lines" (non-NUL terminated strings)
*/
#ifndef eslMEM_INCLUDED
#define eslMEM_INCLUDED
#include "esl_config.h"
#include "easel.h"
extern int esl_mem_strtoi32(char *p, esl_pos_t n, int base, int *opt_nc, int32_t *opt_val);
extern int esl_mem_strtof (char *p, esl_pos_t n, int *opt_nc, float *opt_val);
extern int esl_memnewline(const char *p, esl_pos_t n, esl_pos_t *ret_nline, int *ret_nterm);
extern int esl_memtok(char **p, esl_pos_t *n, const char *delim, char **ret_tok, esl_pos_t *ret_toklen);
extern esl_pos_t esl_memspn (char *p, esl_pos_t n, const char *allow);
extern esl_pos_t esl_memcspn(char *p, esl_pos_t n, const char *disallow);
extern int esl_memstrcmp (const char *p, esl_pos_t n, const char *s);
extern int esl_memstrpfx (const char *p, esl_pos_t n, const char *s);
extern int esl_memstrpfx_case(const char *p, esl_pos_t n, const char *s);
extern int esl_memstrcontains(const char *p, esl_pos_t n, const char *s);
extern int esl_memstrdup(const char *p, esl_pos_t n, char **ret_s);
extern int esl_memstrcpy(const char *p, esl_pos_t n, char *dest);
extern int esl_memtof(const char *p, esl_pos_t n, float *ret_val);
extern int esl_memtod(const char *p, esl_pos_t n, double *ret_val);
extern int esl_mem_IsReal(const char *p, esl_pos_t n);
#endif /*eslMEM_INCLUDED*/
You can’t perform that action at this time.