HW11/include/linklist.h

13 lines
421 B
C

#include "rust.h"
struct Node{
void* val;
__INTPTR_TYPE__ xor_;
};
struct Node* xor_new(void * val);
struct Node* xor_next(struct Node* previous,struct Node* current);
struct Node* xor_insert_front(struct Node* head,void* val);
struct Node* xor_insert_mid(struct Node* previous,struct Node* current,void * val);
void * xor_remove(struct Node * previous,struct Node* current);
usize xor_count(struct Node* head);