how to manipulate listes in C