Re: problems with gcc and fopen() in debian 2.2

2001-08-08 Thread J.A.Serralheiro
are you sure you have the right permitions? if you dont, or there is some other problem, the file isnt opened and your code still assumes it is. do somethng like if ( !( infile = fopen(sdgjflgfdf) ) ) abort(); Dont trust the system :-) On Wed, 8 Aug 2001, Andreas Maresch wrote: > Hello! > > I a

Re: problems with gcc and fopen() in debian 2.2

2001-08-08 Thread Eric G. Miller
On Wed, Aug 08, 2001 at 09:16:52AM +0200, Andreas Maresch wrote: > Hello! > > I am (re)starting in programming c (I have learned it a while ago > under dos). Yesterday, I wrote a simple program. When compiled with > gcc -o test test.c, no errors or warnings occured. > > But when I try to run, i

Re: problems with gcc and fopen() in debian 2.2

2001-08-08 Thread Paul Scott
Andreas Maresch wrote: Hello! I am (re)starting in programming c (I have learned it a while ago under dos). Yesterday, I wrote a simple program. When compiled with gcc -o test test.c, no errors or warnings occured. But when I try to run, it terminates with "Segmentation fault". So, with the he

problems with gcc and fopen() in debian 2.2

2001-08-08 Thread Andreas Maresch
Hello! I am (re)starting in programming c (I have learned it a while ago under dos). Yesterday, I wrote a simple program. When compiled with gcc -o test test.c, no errors or warnings occured. But when I try to run, it terminates with "Segmentation fault". So, with the help of ddd (real nice tool