3 * (c) copyright 1983 by the Vrije Universiteit, Amsterdam, The Netherlands.
5 * This product is part of the Amsterdam Compiler Kit.
7 * Permission to use, sell, duplicate or disclose this software must be
8 * obtained in writing. Requests for such permissions may be sent to
10 * Dr. Andrew S. Tanenbaum
11 * Wiskundig Seminarium
19 /* Author: J.W. Stevenson */
28 _skipsp(f
) struct file
*f
; {
29 while ((*f
->ptr
== ' ') || (*f
->ptr
== '\t'))
33 int _getsig(f
) struct file
*f
; {
36 if ((sign
= (*f
->ptr
== '-')) || *f
->ptr
== '+')
41 int _fstdig(f
) struct file
*f
; {
45 if ((unsigned) ch
> 9) {
52 int _nxtdig(f
) struct file
*f
; {
57 if ((unsigned) ch
> 9)
62 int _getint(f
) struct file
*f
; {
65 is_signed
= _getsig(f
);
70 while ((ch
= _nxtdig(f
)) >= 0);
71 return(is_signed
? i
: -i
);
74 int _rdi(f
) struct file
*f
; {