Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.33 KB | None | 0 0
  1. void atualizaListaConsultas(pconsulta *first, pconsulta *last) {
  2.  
  3.     pconsulta novo = NULL;
  4.  
  5.     int num_c;
  6.  
  7.     novo = malloc(sizeof (CON));
  8.  
  9.     if (*first == NULL) {
  10.         *first = novo;
  11.         *last = novo;
  12.     } else {
  13.  
  14.         (*last)->prox = novo;
  15.         novo->prox = NULL;
  16.         *last = novo;
  17.     }
  18.  
  19.  
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement