author | Francesco Abbate <francesco.bbt@gmail.com> | 2009年11月29日 18:20:31 +0000 |
---|---|---|
committer | Francesco Abbate <francesco.bbt@gmail.com> | 2009年11月29日 18:20:31 +0000 |
commit | 80e5324cf70c55e96f3aa405153ed1930a26abf7 (patch) | |
tree | af7440cd539394f5710abbcb260e51935ffda3d2 /agg-plot/string_printf.cpp | |
parent | 67e863fa3eef8e476507d58b7a21e7018ed56a28 (diff) | |
download | gsl-shell-80e5324cf70c55e96f3aa405153ed1930a26abf7.tar.gz |
-rw-r--r-- | agg-plot/string_printf.cpp | 24 |
diff --git a/agg-plot/string_printf.cpp b/agg-plot/string_printf.cpp deleted file mode 100644 index 884550bd..00000000 --- a/agg-plot/string_printf.cpp +++ /dev/null @@ -1,24 +0,0 @@ - -#include <string> -#include <stdarg.h> - -void -string_printf (std::string &s, const char *fmt, ...) -{ - va_list ap; - char *buf; - int n; - - va_start (ap, fmt); - - n = vasprintf (&buf, fmt, ap); - if (n <= 0) - { - s = ""; - return; - } - - s = (const char *) buf; - free (buf); - va_end (ap); -} |