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 either:
13
14  * the GNU Lesser General Public License as published by the Free
15    Software Foundation; either version 3 of the License, or (at your
16    option) any later version.
17
18or
19
20  * the GNU General Public License as published by the Free Software
21    Foundation; either version 2 of the License, or (at your option) any
22    later version.
23
24or both in parallel, as here.
25
26The GNU MP Library is distributed in the hope that it will be useful, but
27WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
28or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
29for more details.
30
31You should have received copies of the GNU General Public License and the
32GNU Lesser General Public License along with the GNU MP Library.  If not,
33see https://www.gnu.org/licenses/.  */
34
35#include <stdio.h>
36#include "gmp-impl.h"
37
38
39/* SunOS 4 stdio.h doesn't provide prototypes for these */
40#if ! HAVE_DECL_FGETC
41int fgetc (FILE *);
42#endif
43#if ! HAVE_DECL_FSCANF
44int fscanf (FILE *, const char *, ...);
45#endif
46#if ! HAVE_DECL_UNGETC
47int ungetc (int, FILE *);
48#endif
49
50
51static void
52step (FILE *fp, int n)
53{
54}
55
56const struct gmp_doscan_funs_t  __gmp_fscanf_funs = {
57  (gmp_doscan_scan_t)  fscanf,
58  (gmp_doscan_step_t)  step,
59  (gmp_doscan_get_t)   fgetc,
60  (gmp_doscan_unget_t) ungetc,
61};
62