#ifndef MYSTR typedef struct STRING {int len, total; char *s;} String; String *str_new(void); void str_init(String *s); int str_len(String *s); void str_adds(String *dst, char *s, int len); void str_add(String *dst, String *src); void str_expand(String *s, int len); void str_setlen(String *s, int len); void str_setsize(String *s, int len); void str_copys(String *dst, char *src, int len); void str_copy(String *dst, String *src); void str_free(String *s) ; void str_dump(String *s) ; char *str_s(String *s); int str_write(String *xitem, char *fname); int str_read(String *s, char *fname); void str_addsn(String *a, char *s); void str_copysn(String *a, char *s); void str_right(String *a, int r); #define MYSTR TRUE #endif