comparison libtommath/bn_mp_fread.c @ 1470:8bba51a55704

Update to libtommath v1.0.1
author Matt Johnston <matt@ucc.asn.au>
date Thu, 08 Feb 2018 23:11:40 +0800
parents 60fc6476e044
children f52919ffd3b1
comparison
equal deleted inserted replaced
1469:51043e868f55 1470:8bba51a55704
13 * guarantee it works. 13 * guarantee it works.
14 * 14 *
15 * Tom St Denis, [email protected], http://libtom.org 15 * Tom St Denis, [email protected], http://libtom.org
16 */ 16 */
17 17
18 #ifndef LTM_NO_FILE
18 /* read a bigint from a file stream in ASCII */ 19 /* read a bigint from a file stream in ASCII */
19 int mp_fread(mp_int *a, int radix, FILE *stream) 20 int mp_fread(mp_int *a, int radix, FILE *stream)
20 { 21 {
21 int err, ch, neg, y; 22 int err, ch, neg, y;
22 23
57 a->sign = neg; 58 a->sign = neg;
58 } 59 }
59 60
60 return MP_OKAY; 61 return MP_OKAY;
61 } 62 }
63 #endif
62 64
63 #endif 65 #endif
64 66
65 /* $Source$ */ 67 /* ref: $Format:%D$ */
66 /* $Revision$ */ 68 /* git commit: $Format:%H$ */
67 /* $Date$ */ 69 /* commit time: $Format:%ai$ */