Use gcc function attributes for better error checking
git-svn-id: svn://svn.cc65.org/cc65/trunk@210 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -40,6 +40,8 @@
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
#include "attrib.h"
|
||||
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
@@ -48,7 +50,8 @@
|
||||
|
||||
|
||||
|
||||
int xsprintf (char* Buf, size_t BufSize, const char* Format, ...);
|
||||
int xsprintf (char* Buf, size_t BufSize, const char* Format, ...)
|
||||
attribute ((format (printf, 3, 4)));
|
||||
/* Replacement function for sprintf */
|
||||
|
||||
int xvsprintf (char* Buf, size_t BufSize, const char* Format, va_list ap);
|
||||
|
||||
Reference in New Issue
Block a user