]> git.sur5r.net Git - cc65/commitdiff
Added prototypes for snprintf/vsnprintf to stdio.h
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 27 Sep 2009 12:03:07 +0000 (12:03 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 27 Sep 2009 12:03:07 +0000 (12:03 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@4244 b7a2c559-68d2-44c3-8de9-860c34a00d81

doc/funcref.sgml
include/stdio.h

index ccb15df9b6945406d3f5802699b42c639805dd53..e37f49ccbd55fb6fe0ebad0fdaf05bab73f28877 100644 (file)
@@ -292,7 +292,7 @@ function.
 </itemize>
 
 (incomplete)
-                                          
+
 
 <sect1><tt/nes.h/<label id="nes.h"><p>
 
@@ -415,12 +415,14 @@ It does not declare any functions.
 <item><ref id="remove" name="remove">
 <!-- <item><ref id="rewind" name="rewind"> -->
 <!-- <item><ref id="scanf" name="scanf"> -->
+<!-- <item><ref id="snprintf" name="snprintf"> -->
 <!-- <item><ref id="sprintf" name="sprintf"> -->
 <!-- <item><ref id="sscanf" name="sscanf"> -->
 <!-- <item><ref id="vfprintf" name="vfprintf"> -->
 <!-- <item><ref id="vfscanf" name="vfscanf"> -->
 <!-- <item><ref id="vprintf" name="vprintf"> -->
 <!-- <item><ref id="vscanf" name="vscanf"> -->
+<!-- <item><ref id="vsnprintf" name="vsnprintf"> -->
 <!-- <item><ref id="vsprintf" name="vsprintf"> -->
 <!-- <item><ref id="vsscanf" name="vsscanf"> -->
 </itemize>
@@ -464,7 +466,7 @@ It does not declare any functions.
 
 
 <sect1><tt/string.h/<label id="string.h"><p>
-
+           
 <itemize>
 <item><ref id="_stroserror" name="_stroserror">
 <item><ref id="bzero" name="bzero">
@@ -3289,7 +3291,7 @@ used in presence of a prototype.
 <tag/Function/Return the current bounding box for the mouse cursor.
 <tag/Header/<tt/<ref id="mouse.h" name="mouse.h">/
 <tag/Declaration/<tt/void __fastcall__ mouse_getbox (struct mouse_box* box);/
-<tag/Description/The function queries the current bounding box for mouse 
+<tag/Description/The function queries the current bounding box for mouse
 movement.
 <tag/Limits/<itemize>
 <item>The function is only available as fastcall function, so it may only be
index ab913d6c3ce079034909fcce0af07872211a3e55..f1601603e957be8214bc83e4608e2d006870782a 100644 (file)
@@ -6,10 +6,10 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 1998-2008 Ullrich von Bassewitz                                       */
-/*               Roemerstrasse 52                                            */
-/*               D-70794 Filderstadt                                         */
-/* EMail:        uz@cc65.org                                                 */
+/* (C) 1998-2009, Ullrich von Bassewitz                                      */
+/*                Roemerstrasse 52                                           */
+/*                D-70794 Filderstadt                                        */
+/* EMail:         uz@cc65.org                                                */
 /*                                                                           */
 /*                                                                           */
 /* This software is provided 'as-is', without any expressed or implied       */
@@ -116,10 +116,12 @@ int __fastcall__ putchar (int c);
 int __fastcall__ puts (const char* s);
 int __fastcall__ remove (const char* name);
 int __fastcall__ rename (const char* oldname, const char* newname);
+int snprintf (char* buf, size_t size, const char* format, ...);
 int sprintf (char* buf, const char* format, ...);
 int __fastcall__ ungetc (int c, FILE* f);
 int __fastcall__ vfprintf (FILE* f, const char* format, va_list ap);
 int __fastcall__ vprintf (const char* format, va_list ap);
+int __fastcall__ vsnprintf (char* buf, size_t size, const char* format, va_list ap);
 int __fastcall__ vsprintf (char* buf, const char* format, va_list ap);
 
 int scanf (const char* format, ...);