Any idea why this fragment of code will result in the subroutine not completing? Whenever the sub "find" is run, the printf statment executes, but the user cannot enter an input because the routine ends.
find(void)
{
char name_search[10];
int i;
printf("Enter name2:");
gets(name_search);