Being new and all in C, Im facing a problem which I dont know how to get out of. The following is just a simple exercise that was set and for some strange reason I cant get my loop to loop. I keep getting this error msg "segmentation fault"....as to what it means...no idea! Any help would be much appreciated.
printf("Please enter a word\n");
pos = strlen(buf) - strlen(".web");
if (0==strcmp(buf + pos, ".web"))
printf("To enter another word type 'Y'\n");
} while (ans=='Y');