Add gcc printf attribute to gbuf_printf.
More gbuf tests
This commit is contained in:
@@ -70,7 +70,8 @@ int uc_gbuf_append(GBuf *buf,const void *data,size_t len);
|
||||
* @return The number of chars written excluding the terminating nul
|
||||
* character , or negative if an error occurs
|
||||
*/
|
||||
int uc_gbuf_printf(GBuf *buf, const char *fmt, ...);
|
||||
int uc_gbuf_printf(GBuf *buf, const char *fmt, ...)
|
||||
__attribute__((format(printf, 2, 3)));
|
||||
|
||||
/** Expand the capacity of the GBuf.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user