全局的链表在表尾插入后在其他文件没有表示

typedef struct Heart_Flag
{
    xbyte_t periaddress;
    bool heartrecv;
}STRU_HEART_FLAG;

typedef struct List_Point
{
    Heart_Flag *information;
    List_Point *next;
}STRU_LIST_POINT;




//定义的全局链表
STRU_LIST_POINT* g_heartFalseListPoint


void insert_point(STRU_LIST_POINT *list,STRU_HEART_FLAG *ifmation)
{
    STRU_LIST_POINT *p;
                                p=list;
    while (NULL != p->next)
    {
        p=p->next;
    }

    STRU_LIST_POINT *insertpoint = new STRU_LIST_POINT;    

    insertpoint->information=ifmation;
    insertpoint->next=p->next;
    p->next=insertpoint;
    insertpoint->last=p;

}


在这个函数中给全局的链表尾插入多个节点,并赋值,但是在其他的文件中输出这个链表,值都是0,求指教

img


这4句不应该写再while里吗