MCPcopy Create free account
hub / github.com/YatSenOS/YatSenOS-Tutorial-Volume-1 / at

Method at

lab8/src/1/src/utils/list.cpp:162–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160 }
161}
162ListItem *List::at(int pos)
163{
164 ListItem *temp = head.next;
165
166 for (int i = 0; (i < pos) && temp; ++i, temp = temp->next)
167 {
168 }
169
170 return temp;
171}
172
173int List::find(ListItem *itemPtr)
174{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected