diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-04-22 19:54:24 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-04-22 19:54:24 -0700 |
commit | 7e41976a6738db339c0962c632314f8490e626c0 (patch) | |
tree | 361a50a02472fdef66198c2c88516067ba24dada /mpi/mpi.h | |
parent | 13ea02f16c9cdb87c74dd35c63e25ffa96718483 (diff) | |
download | txr-7e41976a6738db339c0962c632314f8490e626c0.tar.gz txr-7e41976a6738db339c0962c632314f8490e626c0.tar.bz2 txr-7e41976a6738db339c0962c632314f8490e626c0.zip |
add-mpi-toradix-with-case patch
* mpi/mpi.c (mp_toradix_case): New function based on mp_toradix. Takes
an argument whether to use lower case digits.
(mp_toradix): Reduced to wrapper for mp_toradix_case.
* mpi/mpi.h (mp_toradix_case): Declared.
Diffstat (limited to 'mpi/mpi.h')
-rw-r--r-- | mpi/mpi.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -213,6 +213,7 @@ mp_err mp_read_radix(mp_int *mp, unsigned char *str, int radix); int mp_radix_size(mp_int *mp, int radix); int mp_value_radix_size(int num, int qty, int radix); mp_err mp_toradix(mp_int *mp, unsigned char *str, int radix); +mp_err mp_toradix_case(mp_int *mp, unsigned char *str, int radix, int low); int mp_char2value(char ch, int r); |