X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fcm%2Fcm_llist.c;h=e8c02510c6ccfdf8433856c04fa15e5753184b24;hb=73da3ffdd36c5ade0c1cccbe7d2ad4d457897b2f;hp=1cc4092aacd227f633002ad4bc19cc31d431dd50;hpb=073b67b21b11eefdaa84a30029f374435c3e0fd0;p=o-du%2Fl2.git diff --git a/src/cm/cm_llist.c b/src/cm/cm_llist.c index 1cc4092aa..e8c02510c 100644 --- a/src/cm/cm_llist.c +++ b/src/cm/cm_llist.c @@ -370,6 +370,32 @@ CmLListCp *list2 /*-- node to be added --*/ return; } /*-- end of cmLListCatLList --*/ + +/*-- + * + * Fun: cmLListDeleteLList + * + * Desc: delete a linked list + * + * Ret: None + * + * Notes: None + * + * File: cm_llist.c + * + --*/ +Void cmLListDeleteLList +( +CmLListCp *list /*-- list control point --*/ +) +{ + while(list->count) + { + cmLListDelFrm(list, list->first); + } + return; +} + /********************************************************************** End of file **********************************************************************/