In response to the recent update, I decided to update uniq further to support variable-length strings with libString. A note that this isn't perfect - it doesn't call s_free (I think) - but it works.
Also, added length(s1)!=length(s2) to the test for equality (a quick optimization).
Pietro Gagliardi
|