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:
cuz
2000-07-27 20:33:33 +00:00
parent c4e957b921
commit 3bcbcd9474
3 changed files with 70 additions and 3 deletions

View File

@@ -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);