Advertisement
Guest User

Untitled

a guest
Oct 4th, 2015
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. if (list == NULL || key == NULL)
  2.             return NULL;
  3.  
  4.         struct node_t *actual = list->head;
  5.         while(actual!=NULL){
  6.             if (strcmp(actual->elem->key, key) == 0) {
  7.             return actual->elem;
  8.         }
  9.             else
  10.                 actual=actual->next;
  11.         }
  12.  
  13.     return NULL;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement