nothings / stb

stb single-file public domain libraries for C/C++

Home Page:https://twitter.com/nothings

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

possibly incorrect function signatures in stb_sprintf

apache-hb opened this issue · comments

Describe the bug
stbsp_vsnprintf and stbsp_snprintf have incorrect function signatures according to the C specification.

According to n3096 7.23.6.5 and 7.23.6.12 the second parameter to [v]snprintf should be of type size_t, in stb_sprintf it is int. Is this an intentional difference or should these be size_t's?