Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char value_at(char* map, char** tbl)
- {
- int x = 0
- int y = 0
- int i = 0;
- while(map[i] != '\0') {
- if(map[i] == '\n'){
- i++;
- x++;
- y = 0;
- }
- if(map[i] != '\n') {
- y = ++;
- }
- tbl[x][y] = map[i];
- i++;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement