Segmentation faults out the ****
This is a discussion on Segmentation faults out the **** within the C Programming forums, part of the General Programming Boards category; i have the following:
Code:
myfile=fopen("getlin.txt","r+");
char*compare=(char*)malloc(sizeof(char*)*20);
int*choice=(int*)malloc(sizeof(int*)*2);
scanf("%d",choice);
printf("\nWhat would you like to search for?");
scanf("%s",compare);
printf("%s\n",compare);
ReadCatalogue(myfile,*choice,*compare); /*Call ...