Updated vsnprint stuff for C++.

git-svn-id: file:///fltk/svn/fltk/trunk@60 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet 1998-11-05 21:25:37 +00:00
parent ee093e2fce
commit b7b9189ee4

View File

@ -1,5 +1,5 @@
/*
* "$Id: vsnprintf.c,v 1.1 1998/11/05 16:07:45 mike Exp $"
* "$Id: vsnprintf.c,v 1.2 1998/11/05 21:25:37 mike Exp $"
*
* vsnprintf() function for the Fast Light Tool Kit (FLTK).
*
@ -43,6 +43,9 @@
#if !HAVE_VSNPRINTF
# ifdef __cplusplus
extern "C"
# endif
int vsnprintf(char* str, size_t size, const char* fmt, va_list ap) {
const char* e = str+size-1;
char* p = str;
@ -111,6 +114,9 @@ int vsnprintf(char* str, size_t size, const char* fmt, va_list ap) {
#if !HAVE_SNPRINTF
# ifdef __cplusplus
extern "C"
# endif
int snprintf(char* str, size_t size, const char* fmt, ...) {
int ret;
va_list ap;
@ -123,5 +129,5 @@ int snprintf(char* str, size_t size, const char* fmt, ...) {
#endif
/*
* End of "$Id: vsnprintf.c,v 1.1 1998/11/05 16:07:45 mike Exp $".
* End of "$Id: vsnprintf.c,v 1.2 1998/11/05 21:25:37 mike Exp $".
*/