 |
My Project
debian-1:4.1.1-p2+ds-4build3
|
Go to the documentation of this file.
27 #define S_BUFF_LEN (4096-SIZEOF_LONG)
31 s_buff F=(s_buff)
omAlloc0(
sizeof(*F));
60 printf(
"link closed");
81 return F->buff[F->bp];
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;
101 printf(
"link closed");
114 printf(
"link closed");
124 }
while((!F->is_eof) && (c<=
' '));
125 if (c==
'-') { neg=-1; c=
s_getc(F); }
142 printf(
"link closed");
152 }
while((!F->is_eof) && (c<=
' '));
153 if (c==
'-') { neg=-1; c=
s_getc(F); }
170 printf(
"link closed");
174 while((!F->is_eof)&&(
i<len))
186 printf(
"link closed");
195 }
while((!F->is_eof) && (c<=
' '));
196 if (c==
'-') { neg=-1; c=
s_getc(F); }
200 mpz_add_ui(a,a,(c-
'0'));
204 if (neg==-1) mpz_neg(a,a);
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);
252 if (F!=
NULL)
return F->is_eof;
void s_readmpz(s_buff F, mpz_t a)
int s_readbytes(char *buff, int len, s_buff F)
#define omFreeSize(addr, size)
s_buff s_open_by_name(const char *n)
void s_ungetc(int c, s_buff F)
long s_readlong(s_buff F)
#define omRealloc0(addr, size)
void s_readmpz_base(s_buff F, mpz_ptr a, int base)