delorie.com/archives/browse.cgi | search |
From: | "A. Sinan Unur" <asu1 AT cornell DOT edu> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: limited space? |
Date: | 28 Nov 2001 16:26:19 GMT |
Organization: | Cornell University |
Lines: | 31 |
Sender: | asu1 AT cornell DOT invalid (on 128.253.251.163) |
Message-ID: | <Xns91677456AE803ASINANUNUR@132.236.56.8> |
References: | <4 DOT 3 DOT 2 DOT 7 DOT 0 DOT 20011128100546 DOT 00ab2940 AT soils DOT umn DOT edu> |
NNTP-Posting-Host: | 128.253.251.163 |
X-Trace: | news01.cit.cornell.edu 1006964779 1243 128.253.251.163 (28 Nov 2001 16:26:19 GMT) |
X-Complaints-To: | usenet AT news01 DOT cit DOT cornell DOT edu |
NNTP-Posting-Date: | 28 Nov 2001 16:26:19 GMT |
User-Agent: | Xnews/4.06.22 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Martin duSaire <mdusaire AT soils DOT umn DOT edu> wrote in news:4 DOT 3 DOT 2 DOT 7 DOT 0 DOT 20011128100546 DOT 00ab2940 AT soils DOT umn DOT edu: > The main loop is controlled with: > > while (fscanf(fpin, "%f, s)!=EOF) Please check the docs for the meaning of the return value of fscanf. > Any ideas? The code is shown below. Some suggestions: * Decide if you want to use the C or C++ IO routines, and stick to one of them. * Give descriptive names to the variables you use. * Do check the C faq and other sources of documentation for proper use of library routines. The C faq is available at http://www.faqs.org/faqs/C-faq/faq/ and a wealth of useful information is available on the command line if you type info and press enter. For example: info libc alpha fscanf <enter> Sinan. -- -------------------------------- A. Sinan Unur http://www.unur.com/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |