MCPcopy Create free account
hub / github.com/AdvancedCompiler/AdvancedCompiler / ListNode

Class ListNode

code/Chapter8/8-23.c:27–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25#include<stdlib.h>
26#include<malloc.h>
27typedef struct ListNode {
28 int Element;
29 struct ListNode* next;
30}Node, * PNode;
31Node* initLink() {
32 Node* p = (Node*)malloc(sizeof(Node));//创建一个头结点
33 Node* temp = p;//声明一个指针指向头结点,用于遍历链表

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected