子函數中爲指針分配空間

#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
相關文章
相關標籤/搜索