From 903049087cd8c23e57868f49d98f2fce34f1ff5a Mon Sep 17 00:00:00 2001 From: uz Date: Sun, 27 Sep 2009 12:03:07 +0000 Subject: [PATCH] Added prototypes for snprintf/vsnprintf to stdio.h git-svn-id: svn://svn.cc65.org/cc65/trunk@4244 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- doc/funcref.sgml | 8 +++++--- include/stdio.h | 10 ++++++---- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/doc/funcref.sgml b/doc/funcref.sgml index ccb15df9b..e37f49ccb 100644 --- a/doc/funcref.sgml +++ b/doc/funcref.sgml @@ -292,7 +292,7 @@ function. (incomplete) - +

@@ -415,12 +415,14 @@ It does not declare any functions. + + @@ -464,7 +466,7 @@ It does not declare any functions.

- + @@ -3289,7 +3291,7 @@ used in presence of a prototype. / The function is only available as fastcall function, so it may only be diff --git a/include/stdio.h b/include/stdio.h index ab913d6c3..f1601603e 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -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, ...); -- 2.39.5