possibly incorrect function signatures in stb_sprintf

Aperta
#35 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
c
Ambito
cli

Direzione di ricerca

The two prototypes in the single header stb_sprintf.h, stbsp_snprintf and stbsp_vsnprintf, take int for the count where the C standard uses size_t. Read the declarations and the matching definitions, then check the thread for the maintainer's answer on whether the difference is intentional. Done means either a signature change with the body adjusted to match, or a reply that explains why the mismatch stays.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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?

Lingua principale
C
Stelle
18
Fork
5
Merge medio
1m
PR unite (30g)
3

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di nothings/stb_sprintf

Tutte le issue di nothings/stb_sprintf

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.