#include <gmp.h>
Go to the source code of this file.
§ s_buff_s
Definition at line 6 of file s_buff.h.
Data Fields |
int |
bp |
|
char * |
buff |
|
int |
end |
|
int |
fd |
|
int |
is_eof |
|
§ s_close()
int s_close |
( |
s_buff & |
f | ) |
|
Definition at line 43 of file s_buff.cc.
#define omFreeSize(addr, size)
§ s_getc()
Definition at line 56 of file s_buff.cc.
60 printf(
"link closed");
81 return F->buff[F->bp];
§ s_iseof()
§ s_isready()
int s_isready |
( |
s_buff |
F | ) |
|
Definition at line 83 of file s_buff.cc.
87 printf(
"link closed");
90 if (F->bp>=F->end)
return 0;
92 while((p<F->end)&&(F->buff[p]<=
' ')) p++;
93 if (p>=F->end)
return 0;
§ s_open()
§ s_open_by_name()
s_buff s_open_by_name |
( |
const char * |
n | ) |
|
§ s_readbytes()
int s_readbytes |
( |
char * |
buff, |
|
|
int |
len, |
|
|
s_buff |
F |
|
) |
| |
Definition at line 166 of file s_buff.cc.
170 printf(
"link closed");
174 while((!F->is_eof)&&(i<len))
§ s_readint()
int s_readint |
( |
s_buff |
F | ) |
|
Definition at line 110 of file s_buff.cc.
114 printf(
"link closed");
124 }
while((!F->is_eof) && (c<=
' '));
125 if (c==
'-') { neg=-1; c=
s_getc(F); }
void s_ungetc(int c, s_buff F)
§ s_readlong()
long s_readlong |
( |
s_buff |
F | ) |
|
Definition at line 138 of file s_buff.cc.
142 printf(
"link closed");
152 }
while((!F->is_eof) && (c<=
' '));
153 if (c==
'-') { neg=-1; c=
s_getc(F); }
void s_ungetc(int c, s_buff F)
§ s_readmpz()
void s_readmpz |
( |
s_buff |
F, |
|
|
mpz_ptr |
a |
|
) |
| |
§ s_readmpz_base()
void s_readmpz_base |
( |
s_buff |
F, |
|
|
mpz_ptr |
a, |
|
|
int |
base |
|
) |
| |
Definition at line 207 of file s_buff.cc.
211 printf(
"link closed");
220 }
while((!F->is_eof) && (c<=
' '));
221 if (c==
'-') { neg=-1; c=
s_getc(F); }
228 || ((c>=
'a') && (c<=
'z'))
229 || ((c>=
'A') && (c<=
'Z')))
246 mpz_set_str(
a,str,
base);
248 if (neg==-1) mpz_neg(
a,
a);
#define omFreeSize(addr, size)
void s_ungetc(int c, s_buff F)
#define omRealloc0(addr, size)
§ s_ungetc()
void s_ungetc |
( |
int |
c, |
|
|
s_buff |
F |
|
) |
| |
Definition at line 97 of file s_buff.cc.
101 printf(
"link closed");