Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (list == NULL || key == NULL)
- return NULL;
- struct node_t *actual = list->head;
- while(actual!=NULL){
- if (strcmp(actual->elem->key, key) == 0) {
- return actual->elem;
- }
- else
- actual=actual->next;
- }
- return NULL;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement