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

Function newstring

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

Source from the content-addressed store, hash-verified

799#endif
800
801inline char *newstring(size_t l) { return new char[l+1]; }
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); }

Callers 15

addtodoentityFunction · 0.85
textureloadFunction · 0.85
loadskymapFunction · 0.85
gettexturelistFunction · 0.85
certMethod · 0.85
loopiMethod · 0.85
checkargMethod · 0.85
parseupdatelistFunction · 0.85
servermapMethod · 0.85
trymapfilesFunction · 0.85
filter_use_hx_modeinfoFunction · 0.85
readFunction · 0.85

Calls 1

copystringFunction · 0.85

Tested by

no test coverage detected