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

Function string_set

samples/cgpu/cgpu-basic/mandelbrot/lodepng.c:305–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

lodepng_add_textFunction · 0.85
lodepng_add_itextFunction · 0.85

Calls 1

string_resizeFunction · 0.85

Tested by

no test coverage detected