FossilOrigin-Name: 761861b63db1cf750b9ae6da8a9057193b85a6aef7e9ea6fa0c2ac330a3d69e5bsdmakefiles
parent
64377940ed
commit
85c11eb0cb
@ -0,0 +1,17 @@ |
||||
#include <string.h> |
||||
|
||||
#include "mlist.h" |
||||
|
||||
struct mlistelem * mlist_replace(mlist_t list, void *data) |
||||
{ |
||||
struct mlistelem *e; |
||||
|
||||
e = mlist_get(list,data); |
||||
if (e == NULL) |
||||
return NULL; |
||||
|
||||
|
||||
|
||||
return e; |
||||
|
||||
} |
Loading…
Reference in new issue