diff --git a/c-programming/experiments/floatscan-experiment.c b/c-programming/experiments/floatscan-experiment.c index 5c8cdb2..66268cf 100644 --- a/c-programming/experiments/floatscan-experiment.c +++ b/c-programming/experiments/floatscan-experiment.c @@ -49,7 +49,7 @@ const char* fgetc_ptr = NULL; static int __shgetc(void); static int __shunget(void); -static long double floatscan(const char* s, int prec); +static long double interface_floatscan(const char* s, int prec); #define shgetc(f) __shgetc() #define shlim(...) @@ -576,7 +576,7 @@ static int __shunget(void) { return 0; } -static long double floatscan(const char* s, int prec) { +static long double interface_floatscan(const char* s, int prec) { fgetc_ptr = s; return __floatscan(NULL, prec, 1); } @@ -588,7 +588,7 @@ int main(int argc, char** argv) { const int prec = LD_B1B_DIG; printf("Selected precision index = %d\n", prec); - long double result = floatscan(value, LONG_DOUBLE_TYPE); + long double result = interface_floatscan(value, LONG_DOUBLE_TYPE); printf("Input : %s\n", value); printf("Decimal floating-point format: %Lf\n", result); printf("Double floating-point format : %Lg\n", result);