[comp.lang.c] Program to eliminate duplicates in a set wanted

sml@beach.cis.ufl.edu (Shein-Fong Law) (04/15/90)

    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.