MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / string_set

Function string_set

samples/shared/lodepng.cpp:320–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318}
319
320static void string_set(char** out, const char* in)
321{
322 size_t insize = strlen(in), i = 0;
323 if(string_resize(out, insize))
324 {
325 for(i = 0; i < insize; i++)
326 {
327 (*out)[i] = in[i];
328 }
329 }
330}
331#endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/
332#endif /*LODEPNG_COMPILE_PNG*/
333

Callers 2

lodepng_add_textFunction · 0.85
lodepng_add_itextFunction · 0.85

Calls 1

string_resizeFunction · 0.85

Tested by

no test coverage detected