MCPcopy Create free account
hub / github.com/HiLab-git/SimpleCRF / string_set

Function string_set

dependency/densecrf/examples/lodepng.cpp:304–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

lodepng_add_textFunction · 0.85
lodepng_add_itextFunction · 0.85

Calls 1

string_resizeFunction · 0.85

Tested by

no test coverage detected