This repository has been archived on 2021-09-16. You can view files and clone it, but cannot push or open issues or pull requests.
msh/fstr.h

16 lines
302 B
C
Raw Permalink Normal View History

2021-09-14 19:00:19 +02:00
#ifndef _MSH_FSTR_H
#define _MSH_FSTR_H
// current length of the string and remaining space, total allocated space is
// len + space
typedef struct _fstr {
unsigned long int len;
unsigned long int space;
char *s;
} fstr_t;
void fstr_append_char(fstr_t *, char);
2021-09-15 14:39:02 +02:00
void fstr_clear(fstr_t *);
2021-09-14 19:00:19 +02:00
#endif