version 1.1.1.1, 2000/09/09 14:12:50 |
version 1.1.1.2, 2003/08/25 16:06:33 |
|
|
FUNCTION WILL CHANGE OR DISAPPEAR IN A FUTURE GNU MP RELEASE. |
FUNCTION WILL CHANGE OR DISAPPEAR IN A FUTURE GNU MP RELEASE. |
|
|
|
|
Copyright (C) 1999, 2000 Free Software Foundation, Inc. |
Copyright 1999, 2000, 2001 Free Software Foundation, Inc. |
|
|
This file is part of the GNU MP Library. |
This file is part of the GNU MP Library. |
|
|
Line 25 the Free Software Foundation, Inc., 59 Temple Place - |
|
Line 25 the Free Software Foundation, Inc., 59 Temple Place - |
|
MA 02111-1307, USA. */ |
MA 02111-1307, USA. */ |
|
|
#include <stdio.h> |
#include <stdio.h> |
|
#include <string.h> /* for strlen */ |
#include "gmp.h" |
#include "gmp.h" |
#include "gmp-impl.h" |
#include "gmp-impl.h" |
|
|
void |
void |
#if __STDC__ |
|
mpz_dump (mpz_srcptr u) |
mpz_dump (mpz_srcptr u) |
#else |
|
mpz_dump (u) |
|
mpz_srcptr u; |
|
#endif |
|
{ |
{ |
char *str; |
char *str; |
|
|
str = mpz_get_str (0, 10, u); |
str = mpz_get_str (0, 10, u); |
printf ("%s\n", str); |
printf ("%s\n", str); |
(*_mp_free_func) (str, 0);/* ??? broken alloc interface, pass what size ??? */ |
(*__gmp_free_func) (str, strlen (str) + 1); |
} |
} |