Functions of simply linked list in c programming