Advertisement
Guest User

Untitled

a guest
Nov 21st, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. char value_at(char* map, char** tbl, int x, int y, int z)
  2. {
  3. int x = 0;
  4. int y = 0;
  5. while (tbl[x] != NULL) {
  6. while (tbl[x][y] != 0) {
  7. y++;
  8. }
  9. x++;
  10. y = 0;
  11. }
  12. int u = my_strlen(map);
  13. int t = nbr_line(tbl);
  14. char** tbl = malloc(sizeof(char*) * t);
  15. for (z = 0; z < nbr_line; z++);
  16. tbl[z] = malloc(sizeof(char) * u);
  17. for(z = 0char value_at(char* map, char** tbl, int x, int y, int z)
  18. {
  19. int x = 0;
  20. int y = 0;
  21. while (tbl[x] != NULL) {
  22. while (tbl[x][y] != 0) {
  23. y++;
  24. }
  25. x++;
  26. y = 0;
  27. }
  28. int u = my_strlen(map);
  29. int t = nbr_line(tbl);
  30. char** tbl = malloc(sizeof(char*) * t);
  31. for (z = 0; z < nbr_line; z++);
  32. tbl[z] = malloc(sizeof(char) * u);
  33. for(z = 0; z < nbr_line; z++);
  34. free(tbl[z]);
  35. }; z < nbr_line; z++);
  36.  
  37.  
  38.  
  39.  
  40. free(tbl[z]);
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement