#include #include #include #include "str.h" #include "util.h" #define INIT_SZ 20 void str_init(str *s) { assert(s); // } void str_deinit(str *s) { if (s->ptr) free(s->ptr); s->ptr = NULL; } void str_init_data(str *s, const char *initial) { assert(s && initial); // } char * str_data(str *s) { assert(s); // return NULL; } str str_copy(str *s) { assert(s); // } void str_append(str *s, char *p) { // } void str_shrink(str *s, int sz) { assert(s && sz >= 0); // }