| www.delorie.com/gnu/docs/gmp/gmp_45.html | search |
![]() Buy GNU books! | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
double.
If str is NULL, the result string is allocated using the current
allocation function (see section 14. Custom Allocation). The block will be
strlen(str)+1 bytes, that being exactly enough for the string and
null-terminator.
If str is not NULL, it should point to a block of storage large
enough for the result, that being
mpz_sizeinbase (mpq_numref(op), base) + mpz_sizeinbase (mpq_denref(op), base) + 3 |
The three extra bytes are for a possible minus sign, possible slash, and the null-terminator.
A pointer to the result string is returned, being either the allocated block, or the given str.
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |