TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: All
from: Paul Edwards
date: 1996-06-03 12:12:24
subject: borland bug?

/* 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)

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.