www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/07/11/11:05:13

From: outlaw AT terraworld DOT net (Jonathan George)
Subject: reading/writing to files
11 Jul 1998 11:05:13 -0700 :
Message-ID: <3.0.5.32.19980711103100.00922a40.cygnus.gnu-win32@terraworld.net>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

Hello all,

I'm writing this message again since my first message apparently didn't go
through....

I'm running Cygwin b19.1, compiling the program using: gcc -o lite lite.c

This program contains a routing that reads from a file then stores the data
that it read into variables, using fgets.  When running this program, the
program "dumps core" everytime, yet if I do NOT call that function, then it
goes ahead and runs...  It seems like whenever I try and access the
fprintf, fgets, or any file writing/reading function it will cause my
program to core.  I'm pretty sure I have all the include's correct, and the
program itself compiles with no errors.



--------------------------------------------------------------
      .---.        .----------    Jonathan George,
     /     \  __  /    ------    Tech. Support, Coder.
    / /     \(  )/    -----     Terra World, Inc.
   //////   ' \/ `   ---       Email: outlaw AT terraworld DOT net
  //// / // :    : ---               -support AT terraworld DOT net
 // /   /  /`    '--                 -root AT lite DOT net
//          //..\\          IRC: net @ irc.lite.net
       ====UU====UU====    Phone: 1-316-332-1616 [office]
           '//||\\`       
            ``''``
  --- mild-mannered programmer by day,                 
      positively grouchy programmer by night           
--------------------------------------------------------------
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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