mirror of
https://github.com/rfivet/uemacs.git
synced 2024-11-17 18:16:22 -05:00
17 lines
265 B
C
17 lines
265 B
C
|
/* list.c -- implements list.h */
|
||
|
/* Copyright © 2021 Renaud Fivet */
|
||
|
#include "list.h"
|
||
|
|
||
|
#include <stdlib.h> /* free() */
|
||
|
|
||
|
/* free a list */
|
||
|
void freelist( list_p lp) {
|
||
|
while( lp) {
|
||
|
list_p next = lp->next ;
|
||
|
free( lp) ;
|
||
|
lp = next ;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* end of list.c */
|