/* This program demonstrates a bug in Borland C++ 3.1 and
Turbo C++ 1.0.
It comes up with error message:
scanf : floating point formats not linked
Abnormal program termination
I can find no way to override this behaviour via a compile
time option.
If you know the reason for this, please contact Paul Edwards,
3:711/934{at}fidonet.
*/
#include
typedef struct {
float x;
} MYSTRUCT;
void foo(MYSTRUCT *s)
{
fscanf(stdin, "%f", &s->x);
return;
}
int main(void)
{
MYSTRUCT s;
foo(&s);
return(0);
}
@EOT:
---
* Origin: X (3:711/934.9)
|