void name(record *el)
{
    char k[100];
    printf("Name: ");
    fgets(k,100,stdin);
    printf("\n");
}
I'm trying to write a function that reads a line from console and then searches for it in a list. I'm having some problem with reading a whole line. The program just skips the fgets line. The same happens if i try with scanf("%[^\n]%*c").
 
    