Has anyone written a routine that will eliminate duplicates in a set? For example, if input is {1,4,5,6,1,5,100}, then output will be {1,4,5,6,100}. I know Lisp or Prolog can do the job easily. But having some difficulty with C. Thanks in advance.