Advertisement
printesoi

Untitled

May 6th, 2011
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.23 KB | None | 0 0
  1. pacient *cautare(pacient *lista, int nr)
  2. {
  3.     pacient *l;
  4.     if(lista==NULL)
  5.         return NULL;
  6.     l = lista;
  7.     while (l) {
  8.         if (l->nr_p==nr)
  9.             return l;
  10.         l = l->urm;
  11.     }
  12.     return NULL;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement