jkuhlmann / cgltf

:diamond_shape_with_a_dot_inside: Single-file glTF 2.0 loader and writer written in C99
MIT License
1.44k stars 136 forks source link

Return new length from string decoding functions #167

Closed pezcode closed 2 years ago

pezcode commented 2 years ago

Suggestion for a minor convenience change to make the cgtf_decode_* functions return the new string length after decoding.

Useful if you want to re-allocate to save memory, and calling strlen seemed unnecessary since the functions should know the new length.