delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/30/02:30:50

From: Adam Brown <adambrown1 AT geocities DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re:
Date: Sun, 30 Aug 1998 00:34:07 +0200
Organization: IP Worldcom
Lines: 9
Message-ID: <35E881DF.7106@geocities.com>
References: <E0zBoRN-0004QX-00 AT sable DOT ox DOT ac DOT uk>
Reply-To: adambrown1 AT geocities DOT com
NNTP-Posting-Host: portls84.worldcom.ch
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

> Please help me with this problem: the following program should run
> correctly, and it runs in others compilers.
> In DJGPP we had problems when our programs use scanf("%c", &x)
> mixed with scanf("%d", &y) or scanf("%f", &z), the first one is
> not runned sucessfully.

I have always found that using gets() and then sprintf() is a more
flexible approach anyway, as line-buffered input is always fiddley to
deal with.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019