1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-22 11:17:19 +00:00

Add printf format checking to sbuf_printf()

Submitted by:	Harti Brandt <brandt@fokus.gmd.de
This commit is contained in:
Poul-Henning Kamp 2001-07-18 15:58:06 +00:00
parent 97e1bac189
commit 344d118fd4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=79870

View File

@ -58,7 +58,7 @@ int sbuf_bcat(struct sbuf *s, const char *str, size_t len);
int sbuf_bcpy(struct sbuf *s, const char *str, size_t len);
int sbuf_cat(struct sbuf *s, const char *str);
int sbuf_cpy(struct sbuf *s, const char *str);
int sbuf_printf(struct sbuf *s, const char *fmt, ...);
int sbuf_printf(struct sbuf *s, const char *fmt, ...) __printflike(2, 3);
int sbuf_putc(struct sbuf *s, int c);
int sbuf_overflowed(struct sbuf *s);
void sbuf_finish(struct sbuf *s);