14 lines
		
	
	
		
			237 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			237 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
|   if (index >= list->node_count) {{
 | |
|     return NULL;
 | |
|   }}
 | |
| 
 | |
|   {NodeType} *output  = NULL;
 | |
|   {NodeType} *current = list->first;
 | |
|   for (u64 i = 1; i <= index; ++i) {{
 | |
|     current = current->next;
 | |
|   }}
 | |
| 
 | |
|   output = current;
 | |
| 
 | |
|   return output;
 |