1/* __gmp_fscanf_funs -- support for formatted input from a FILE.
2
3   THE FUNCTIONS IN THIS FILE ARE FOR INTERNAL USE ONLY.  THEY'RE ALMOST
4   CERTAIN TO BE SUBJECT TO INCOMPATIBLE CHANGES OR DISAPPEAR COMPLETELY IN
5   FUTURE GNU MP RELEASES.
6
7Copyright 2001 Free Software Foundation, Inc.
8
9This file is part of the GNU MP Library.
10
11The GNU MP Library is free software; you can redistribute it and/or modify
12it under the terms of the GNU Lesser General Public License as published by
13the Free Software Foundation; either version 3 of the License, or (at your
14option) any later version.
15
16The GNU MP Library is distributed in the hope that it will be useful, but
17WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
18or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
19License for more details.
20
21You should have received a copy of the GNU Lesser General Public License
22along with the GNU MP Library.  If not, see http://www.gnu.org/licenses/.  */
23
24#include <stdio.h>
25#include "gmp.h"
26#include "gmp-impl.h"
27
28
29/* SunOS 4 stdio.h doesn't provide prototypes for these */
30#if ! HAVE_DECL_FGETC
31int fgetc __GMP_PROTO ((FILE *fp));
32#endif
33#if ! HAVE_DECL_FSCANF
34int fscanf __GMP_PROTO ((FILE *fp, const char *fmt, ...));
35#endif
36#if ! HAVE_DECL_UNGETC
37int ungetc __GMP_PROTO ((int c, FILE *fp));
38#endif
39
40
41static void
42step (FILE *fp, int n)
43{
44}
45
46const struct gmp_doscan_funs_t  __gmp_fscanf_funs = {
47  (gmp_doscan_scan_t)  fscanf,
48  (gmp_doscan_step_t)  step,
49  (gmp_doscan_get_t)   fgetc,
50  (gmp_doscan_unget_t) ungetc,
51};
52