output: int
Description: Static function to check a character string given by name with a character list stored in list[]; If name exists in list then 1 is returned else 0 is returned.