I've been trying to figure out this segmentation fault for hours. Every time I use the char* find I get a seg fault.
char* find = malloc(sizeof(char) * 20);
displayMatrix(rowcol, matrix);
// (Don't mind that ^^^)
printf("Enter a word to find in the puzzle : \n");
scanf("%s", &find);
tolower(find);
len = strlen(find) + 1;
When I run the program, it seg faults right as it gets to
len = strlen(find) + 1
Anyone know why it's doing this? Thanks in advance.