|
|
|
@ -1,5 +1,5 @@
@@ -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 @@
@@ -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) {
@@ -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, ...) {
@@ -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 $". |
|
|
|
|
*/ |
|
|
|
|