MCPcopy Create free account
hub / github.com/KhronosGroup/KTX-Software / alloc_string

Function alloc_string

external/lodepng/lodepng.cpp:334–336  ·  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

332
333/* dynamically allocates a new string with a copy of the null terminated input text */
334static char* alloc_string(const char* in) {
335 return alloc_string_sized(in, lodepng_strlen(in));
336}
337#endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/
338#endif /*LODEPNG_COMPILE_PNG*/
339

Callers 3

lodepng_add_text_sizedFunction · 0.85
lodepng_add_itext_sizedFunction · 0.85
lodepng_set_iccFunction · 0.85

Calls 2

alloc_string_sizedFunction · 0.85
lodepng_strlenFunction · 0.85

Tested by

no test coverage detected