]> git.sur5r.net Git - cc65/blobdiff - src/common/xsprintf.h
More instruction set stuff
[cc65] / src / common / xsprintf.h
index 77e0ea04efee5c308355c3ce7cfeae4525d36915..6981842fddb60a2d90db71119e35e7e93ca9e21a 100644 (file)
@@ -38,6 +38,7 @@
 
 
 
+#include <stdlib.h>
 #include <stdarg.h>
 
 #include "attrib.h"
@@ -54,7 +55,8 @@ 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);
+int xvsprintf (char* Buf, size_t BufSize, const char* Format, va_list ap)
+       attribute ((format (printf, 3, 0)));
 /* Replacement function for sprintf */