Can the following functions be added to tp.h? This improves client code readability for common use cases since it no longer needs to access 's' field in tp struct directly.
static inline void tp_free(struct tp *p) {
free(p->s);
}
static inline char* tp_buf(struct tp *p) {
return p->s;
}