c - Segmentation Fault on fclose -
i getting segmentation fault error while running program in linux. working fine in aix. and seg fault message in gdb... program received signal sigsegv, segmentation fault fclose@@glibc_2.2.5 () /lib64/libc.so.6 <pre><code> #include<stdio.h> #include<string.h> #include<unistd.h> #include<time.h> #include<sys/types.h> #define _monthly "99992016" file *source,*list,*wlist,*movlist,*biflis; char sf[85],sf1[85]; char filename[85],filename1[85],name[140],fstring[140],iname[140],account[85]; char *ptr="",*st=""; int i,len,x,y,z,bif_count,pin_count,your_monthly_count,count1,count2; char suffix[4]=".pin"; char *nptr=" "; file *biflis; int p; int main() { long t; ...