]> 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)
committerSimon Glass <sjg@chromium.org>
Sat, 2 Nov 2024 17:13:59 +0000 (11:13 -0600)
commit70f5f17415a257ce8d5f32df5b40194b89a27960
treea01d9b96bd88ea76aa1f4e7c253ae02eea12d50d
parent83bc5989fc5f71e2c40d75ea786ccbf937b9fbab
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