Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.50 KB | None | 0 0
  1. void decodifica_msg(char * msg, Arv * acm)
  2. {
  3.     char * tok;
  4.     char * msgcpy;
  5.  
  6.     // faz copia para trabalhar com strtok
  7.     msgcpy = strdup(msg);
  8.  
  9.     for (tok = strtok(msgcpy, " "); tok; tok = strtok(NULL, " "))
  10.     {
  11.         // chama funcao para decodificar o caractere tok usando a arvore acm
  12.     }
  13.  
  14.     // libera copia
  15.     free(msgcpy);
  16. }
  17. ALGUÉM ME EXPLICA O QUE É ISSO ? /\
  18.  
  19. CODIFICAR  - char *AbbCodificaAscii (Abb *a, char l)
  20.  
  21. DECODIFICAR - void ArvDecodifica (Arv *a, char *cod)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement