]> git.dujemihanovic.xyz Git - u-boot.git/commit
alist: Add a function to empty the list
authorSimon Glass <sjg@chromium.org>
Sat, 19 Oct 2024 15:21:46 +0000 (09:21 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 4 Nov 2024 03:27:12 +0000 (21:27 -0600)
commit5bd4ead8bd76c85aa599c44e8bfb12f512d8ed09
tree4fb1a792341f6a5b3c636bf79071c64f2a669d6a
parentd785a77d18acdf6714f4570c14e622caadf4d5e3
alist: Add a function to empty the list

Sometimes it is useful to empty the list without de-allocating any of
the memory used, e.g. when the list will be re-populated immediately
afterwards.

Add a new function for this.

Signed-off-by: Simon Glass <sjg@chromium.org>
include/alist.h
lib/alist.c
test/lib/alist.c