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

Function LodePNGIText_copy

src/lodepng.cpp:2780–2794  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2778}
2779
2780static unsigned LodePNGIText_copy(LodePNGInfo* dest, const LodePNGInfo* source)
2781{
2782 size_t i = 0;
2783 dest->itext_keys = 0;
2784 dest->itext_langtags = 0;
2785 dest->itext_transkeys = 0;
2786 dest->itext_strings = 0;
2787 dest->itext_num = 0;
2788 for(i = 0; i < source->itext_num; i++)
2789 {
2790 CERROR_TRY_RETURN(lodepng_add_itext(dest, source->itext_keys[i], source->itext_langtags[i],
2791 source->itext_transkeys[i], source->itext_strings[i]));
2792 }
2793 return 0;
2794}
2795
2796void lodepng_clear_itext(LodePNGInfo* info)
2797{

Callers 1

lodepng_info_copyFunction · 0.85

Calls 1

lodepng_add_itextFunction · 0.85

Tested by

no test coverage detected