MCPcopy Create free account
hub / github.com/ProjectPhysX/FluidX3D / alloc_string

Function alloc_string

src/lodepng.cpp:309–311  ·  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

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

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