summaryrefslogtreecommitdiff
path: root/src/vsnprintf.c
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2002-03-25 21:55:05 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2002-03-25 21:55:05 +0000
commita36605449a3c0c870ea319111cac0a5c059c829b (patch)
treeeba1f10b257916cea01116e77bf35dcebd541eb7 /src/vsnprintf.c
parent915d0a748be1eec09ab407d3e569f0c58ec3e38b (diff)
Don't use the snprintf() and vsnprintf() names; instead, use fl_snprintf()
and fl_vsnprintf() and define snprintf and vsnprintf to fl_... (Some compilers treat snprintf() and vsnprintf() differently, and we also don't want to collide with other libraries that might provide their own implementation...) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2031 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/vsnprintf.c')
-rw-r--r--src/vsnprintf.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/vsnprintf.c b/src/vsnprintf.c
index 4698bd630..ab83a7b02 100644
--- a/src/vsnprintf.c
+++ b/src/vsnprintf.c
@@ -1,5 +1,5 @@
/*
- * "$Id: vsnprintf.c,v 1.3.2.5.2.1 2002/01/01 15:11:32 easysw Exp $"
+ * "$Id: vsnprintf.c,v 1.3.2.5.2.2 2002/03/25 21:55:05 easysw Exp $"
*
* vsnprintf() function for the Fast Light Tool Kit (FLTK).
*
@@ -38,8 +38,7 @@
*/
#include <stdio.h>
-#include <stdarg.h>
-#include <config.h>
+#include "flstring.h"
#ifdef HAVE_SYS_STDTYPES_H
# include <sys/stdtypes.h>
@@ -51,7 +50,7 @@ extern "C" {
#if !HAVE_VSNPRINTF
-int vsnprintf(char* str, size_t size, const char* fmt, va_list ap) {
+int fl_vsnprintf(char* str, size_t size, const char* fmt, va_list ap) {
const char* e = str+size-1;
char* p = str;
char copy[20];
@@ -119,7 +118,7 @@ int vsnprintf(char* str, size_t size, const char* fmt, va_list ap) {
#if !HAVE_SNPRINTF
-int snprintf(char* str, size_t size, const char* fmt, ...) {
+int fl_snprintf(char* str, size_t size, const char* fmt, ...) {
int ret;
va_list ap;
va_start(ap, fmt);
@@ -135,6 +134,6 @@ int snprintf(char* str, size_t size, const char* fmt, ...) {
#endif
/*
- * End of "$Id: vsnprintf.c,v 1.3.2.5.2.1 2002/01/01 15:11:32 easysw Exp $".
+ * End of "$Id: vsnprintf.c,v 1.3.2.5.2.2 2002/03/25 21:55:05 easysw Exp $".
*/