MCPcopy Create free account
hub / github.com/assaultcube/AC / newstringbuf

Function newstringbuf

source/src/tools.h:804–804  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 3

loopvFunction · 0.85
renderdocFunction · 0.85
consolebufferClass · 0.85

Calls 1

newstringFunction · 0.85

Tested by

no test coverage detected