util/set: add a clone function
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Mon, 25 Jun 2018 16:51:20 +0000 (09:51 -0700)
committerRafael Antognolli <rafael.antognolli@intel.com>
Thu, 12 Jul 2018 21:03:51 +0000 (14:03 -0700)
commitb034facfbc446b28f2cc92c32122849a25fb1001
treef999a9ccc39fe025b3d0f442cd542b46e03a7371
parent8af0a45b4701aa99616b6d5975025ce793172a9c
util/set: add a clone function

v2: Add unit test. (Eric Anholt)

Reviewed-by: Eric Anholt <eric@anholt.net>
src/util/set.c
src/util/set.h
src/util/tests/set/set_test.cpp