Check If An Element Is In A List In C