子函数中为指针分配空间

#include <stdio.h> #include <malloc.h> typedef struct node{ int data; struct node *next; }Node,*Linklist; void my_malloc(Linklist *node) { if(*node == NULL){ *node = (Linklist)ma
相关文章
相关标签/搜索