36int main(
int argc,
char *argv[]) {
43 fprintf(stderr,
"Usage: input <value> [output-base]\n");
48 fprintf(stderr,
"Error: Specified radix is out of range (%d)\n", radix);
62 fprintf(stderr,
"Error in mp_rat_read_ustring(): %s\n",
65 if (
res ==
MP_TRUNC) fprintf(stderr,
" -- remaining input is: %s\n", endp);
71 printf(
"Here is your value in base %d\n", radix);
80 obuf = malloc(buf_size);
85 fprintf(stderr,
"Converstion to base %d failed: %s\n", radix,
94 obuf = malloc(buf_size);
99 fprintf(stderr,
"Conversion to base %d failed: %s\n", radix,
static mp_int MP_NUMER_P(mp_rat Q)
#define mp_rat_is_integer
#define mp_rat_string_len
#define mp_int_string_len
#define mp_rat_read_ustring