home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!munnari.oz.au!uniwa!cujo!lillee!chans
- From: chans@lillee.cs.curtin.edu.au (Sean Chan)
- Subject: fscanf problem...
- Message-ID: <chans.714976579@lillee>
- Sender: news@cujo.curtin.edu.au (News Manager)
- Organization: Curtin University of Technology
- Date: Fri, 28 Aug 1992 04:36:19 GMT
- Lines: 28
-
- Gidday all,
-
- I am trying to read a file containing a 2x2 dim array of integers. The
- numbers are indented in the file...
-
- eg.
- 2 2 2 1 20 30 40 70... and so on...
-
- I'm trying to get fscanf to read each integer at a time but I get a core
- dump. It's used like this :-
-
- fscanf (infile, "%d", val);
-
- Any reason why I'm getting a core dump?? Doesn't fscanf automatically
- skip the spaces and read the integers only??
-
- Sean
- ***********************************************************************
- * * *
- * Sean Chan * Inside every microchip *
- * Student Number : 892561F * there is a little man *
- * 3rd Yr. Computer Science * running around doing *
- * Curtin University of Technology * everything you have *
- * * asked him to do... *
- * E-Mail : chans@marsh.cs.curtin.edu.au * *
- * pchans@cc.curtin.edu.au ******************************
- * *
- ******************************************
-