MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / string_init

Function string_init

samples/shared/lodepng.cpp:307–311  ·  view source on GitHub ↗

init a {char*, size_t} pair for use as string*/

Source from the content-addressed store, hash-verified

305
306/*init a {char*, size_t} pair for use as string*/
307static void string_init(char** out)
308{
309 *out = NULL;
310 string_resize(out, 0);
311}
312
313/*free the above pair again*/
314static void string_cleanup(char** out)

Callers 2

lodepng_add_textFunction · 0.85
lodepng_add_itextFunction · 0.85

Calls 1

string_resizeFunction · 0.85

Tested by

no test coverage detected