18 lines
202 B
C
18 lines
202 B
C
|
#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;
|
||
|
|
||
|
}
|