MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / string_set

Function string_set

src/lodepng.cpp:303–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301}
302
303static void string_set(char** out, const char* in)
304{
305 size_t insize = strlen(in), i = 0;
306 if(string_resize(out, insize))
307 {
308 for(i = 0; i < insize; i++)
309 {
310 (*out)[i] = in[i];
311 }
312 }
313}
314#endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/
315#endif /*LODEPNG_COMPILE_PNG*/
316

Callers 2

lodepng_add_textFunction · 0.85
lodepng_add_itextFunction · 0.85

Calls 1

string_resizeFunction · 0.85

Tested by

no test coverage detected