Re: seg fault on file write in cygwin, please help!!!

2004-03-18 Thread Yitzchak Scott-Thoennes
On Thu, Mar 18, 2004 at 08:35:46PM -0500, scyudits wrote: > FILE *outfile = fopen("/home/Sophia/ns-allinone-2.27/ns-2.27/myfile.tcl", "w"); check here if fopen failed (outfile will be NULL) > fprintf(outfile, "%s", output); > > ...where output is a regular string (character array). A stri

Re: seg fault on file write in cygwin, please help!!!

2004-03-18 Thread Igor Pechtchanski
On Thu, 18 Mar 2004 [EMAIL PROTECTED] wrote: > Hi, > > I am getting the following seg fault at the point in my C++ code where > data gets written to a file. > > First, here is the code that is the source of the problem (should be > correct): > > FILE *outfile = fopen("/home/Sophia/ns-allinone-2.27