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

Function uivector_copy

src/lodepng.cpp:186–192  ·  view source on GitHub ↗

copy q to p, returns 1 if success, 0 if failure ==> nothing done*/

Source from the content-addressed store, hash-verified

184
185/*copy q to p, returns 1 if success, 0 if failure ==> nothing done*/
186static unsigned uivector_copy(uivector* p, const uivector* q)
187{
188 size_t i;
189 if(!uivector_resize(p, q->size)) return 0;
190 for(i = 0; i < q->size; i++) p->data[i] = q->data[i];
191 return 1;
192}
193#endif /*LODEPNG_COMPILE_ENCODER*/
194#endif /*LODEPNG_COMPILE_ZLIB*/
195

Callers 1

coin_copyFunction · 0.85

Calls 1

uivector_resizeFunction · 0.85

Tested by

no test coverage detected