16 lines
302 B
C
16 lines
302 B
C
#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);
|
|
void fstr_clear(fstr_t *);
|
|
|
|
#endif
|