diff options
author | Kevin Ryde <user42@zip.com.au> | 2002-12-21 01:35:33 +0100 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2002-12-21 01:35:33 +0100 |
commit | 1815ac46231ea315164e006c6e2f4c81cfe8fd81 (patch) | |
tree | a556f7e219abf4fb12b9e59542a12266582b55c9 /cxx | |
parent | 93cb2a4993c07eae207f086a8072f68976014dc7 (diff) | |
download | gmp-1815ac46231ea315164e006c6e2f4c81cfe8fd81.tar.gz |
* cxx/osdoprnti.cc: Use <cstdarg> and <cstring> rather than <stdarg.h>
and <string.h>. No need for <stdio.h>.
Diffstat (limited to 'cxx')
-rw-r--r-- | cxx/osdoprnti.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/cxx/osdoprnti.cc b/cxx/osdoprnti.cc index fefb060c5..36aeaf7a5 100644 --- a/cxx/osdoprnti.cc +++ b/cxx/osdoprnti.cc @@ -24,14 +24,12 @@ the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include <iostream> -#include <stdarg.h> /* for va_list and hence doprnt_funs_t */ -#include <string.h> +#include <cstdarg> /* for va_list and hence doprnt_funs_t */ +#include <cstring> /* for strlen */ #include "gmp.h" #include "gmp-impl.h" -#include <stdio.h> - using namespace std; @@ -49,7 +47,7 @@ __gmp_doprnt_integer_ostream (ostream &o, struct doprnt_params_t *p, /* don't show leading zeros the way printf does */ p->prec = -1; - + GMP_ASPRINTF_T_INIT (d, &result); ret = __gmp_doprnt_integer (&__gmp_asprintf_funs_noformat, &d, p, s); ASSERT (ret != -1); |