链表的清空操作


typedef struct _NodeList
{
    void *nodeItem;
    struct _NodeList *next;
}NodeList;

void Node_free( NodeList *nList )
{
    Nodelist *next;
    while( nList != NULL ){
        next = nList->next;
        free(nLlist);
        nList = next;
    }

}

猜你喜欢

转载自blog.csdn.net/wssjn1994/article/details/87605909