1 /* 2 Copyright (C) 2019 Julian Rüth 3 4 This file is part of Arb. 5 6 Arb is free software: you can redistribute it and/or modify it under 7 the terms of the GNU Lesser General Public License (LGPL) as published 8 by the Free Software Foundation; either version 2.1 of the License, or 9 (at your option) any later version. See <http://www.gnu.org/licenses/>. 10 */ 11 12 #include <stdio.h> 13 #include <string.h> 14 15 #include "arb.h" 16 17 int arb_load_file(arb_t x,FILE * stream)18arb_load_file(arb_t x, FILE* stream) 19 { 20 int err; 21 22 err = arf_load_file(arb_midref(x), stream); 23 24 if (err) return err; 25 26 err = mag_load_file(arb_radref(x), stream); 27 28 return err; 29 } 30 31