Skip to content

possibly incorrect function signatures in stb_sprintf #1621

@apache-hb

Description

@apache-hb

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions