15 lines
275 B
C
15 lines
275 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);
|
||
|
|
|
||
|
|
#endif
|