conditional definition of FGETS
This commit is contained in:
parent
2bde5bb5d5
commit
f1f6762616
@ -77,13 +77,13 @@ static void _panic(int l)
|
|||||||
fprintf(stderr, "\n%d: fgets failed\n", l);
|
fprintf(stderr, "\n%d: fgets failed\n", l);
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
#define FGETS(str, size, stream) \
|
#define FGETS(str, size, stream) \
|
||||||
{ \
|
{ \
|
||||||
char *ret = fgets(str, size, stream); \
|
char *ret = fgets(str, size, stream); \
|
||||||
if (!ret) { _panic(__LINE__); } \
|
if (!ret) { _panic(__LINE__); } \
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static mp_int a, b, c, d, e, f;
|
static mp_int a, b, c, d, e, f;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user