C program to manage members by list