MCPcopy Create free account
hub / github.com/DFHack/dfhack / alloc_string

Function alloc_string

depends/lodepng/lodepng.cpp:313–315  ·  view source on GitHub ↗

dynamically allocates a new string with a copy of the null terminated input text */

Source from the content-addressed store, hash-verified

311
312/* dynamically allocates a new string with a copy of the null terminated input text */
313static char* alloc_string(const char* in) {
314 return alloc_string_sized(in, lodepng_strlen(in));
315}
316#endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/
317#endif /*LODEPNG_COMPILE_PNG*/
318

Callers 3

lodepng_add_text_sizedFunction · 0.85
lodepng_add_itext_sizedFunction · 0.85
lodepng_assign_iccFunction · 0.85

Calls 2

alloc_string_sizedFunction · 0.85
lodepng_strlenFunction · 0.85

Tested by

no test coverage detected