Mail Archives: djgpp/1998/03/07/20:45:42
Bruno Barberi Gnecco wrote:
> Exiting due to signal SIGSEGV
> General Protection Fault at eip=0000177d
You should know the majority of SIGSEGVs are pointer that are either
uninitialised (your case) or initialised somewhere in space....
> int *point, *infr, *temp;
those are pointers. they point. they don't hold anything. you should
make them point at something useful, like pointer=&variable, or allocate
some memory to them:
point=malloc(sizeof(int));
infr=malloc(sizeof(int));
temp=malloc(sizeof(int));
add this and you should be fine. Have a nice day.
--
--> http://www.cam.org/~tudor <--
- Raw text -