Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char value_at(char* map, char** tbl, int x, int y, int z)
- {
- int x = 0;
- int y = 0;
- while (tbl[x] != NULL) {
- while (tbl[x][y] != 0) {
- y++;
- }
- x++;
- y = 0;
- }
- int u = my_strlen(map);
- int t = nbr_line(tbl);
- char** tbl = malloc(sizeof(char*) * t);
- for (z = 0; z < nbr_line; z++);
- tbl[z] = malloc(sizeof(char) * u);
- for(z = 0char value_at(char* map, char** tbl, int x, int y, int z)
- {
- int x = 0;
- int y = 0;
- while (tbl[x] != NULL) {
- while (tbl[x][y] != 0) {
- y++;
- }
- x++;
- y = 0;
- }
- int u = my_strlen(map);
- int t = nbr_line(tbl);
- char** tbl = malloc(sizeof(char*) * t);
- for (z = 0; z < nbr_line; z++);
- tbl[z] = malloc(sizeof(char) * u);
- for(z = 0; z < nbr_line; z++);
- free(tbl[z]);
- }; z < nbr_line; z++);
- free(tbl[z]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement