| 802 | inline char *newstring(const char *s, size_t l) { return copystring(newstring(l), s, l+1); } |
| 803 | inline char *newstring(const char *s) { size_t l = strlen(s); char *d = newstring(l); memcpy(d, s, l+1); return d; } |
| 804 | inline char *newstringbuf() { return newstring(MAXSTRLEN-1); } |
| 805 | inline char *newstringbuf(const char *s) { return newstring(s, MAXSTRLEN-1); } |
| 806 | inline void delstring(const char *s) { delete[] (char *)s; } |
| 807 | #define DELSTRING(s) if(s) { delstring(s); s = NULL; } |
no test coverage detected