| www.delorie.com/archives/browse.cgi | search |
| From: | Barry Rodewald <bsr AT hn DOT pl DOT net> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: A really simple program |
| Date: | Thu, 23 Oct 1997 22:03:54 +1300 |
| Lines: | 12 |
| Message-ID: | <344F12FA.CDA@hn.pl.net> |
| References: | <Pine DOT LNX DOT 3 DOT 95 DOT 971020090455 DOT 27070A-100000 AT ideafix DOT litec DOT csic DOT es> |
| NNTP-Posting-Host: | bsr.hn.planet.gen.nz |
| Mime-Version: | 1.0 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Miguel Murillo wrote: > fscanf(fd,"%s",&cad); You shouldn't need the address-of (&). Referring to an array name without an element number (ie: no square brackets) gives you the address of the beginning of the array. Remove it in both your fscanf functions should help. Hope this helps, Barry Rodewald.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |