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

Function selectElem

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

Source from the content-addressed store, hash-verified

49 printf("\n");
50}
51int selectElem(Node* p, int M) {
52 Node* temp;
53 for (; p->next; p = p->next) {
54 if (p->Element == M) {
55 temp = p;
56 return 1;
57 }
58 }
59 return -1;
60}
61int main() {
62 printf("初始化链表为:\n");
63 Node* p = initLink();

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected