#include <stdio.h>
#include <stdlib.h>
void newmap(int x, int y , int players) {
char **map
= malloc(sizeof(char *) * y
); for (int i = 0; i < x; i++) {
for (int j = 0; j < y; j++) {
if (i == 0 || j == 0 || i == x - 1 || j == y - 1) {
map[i][j] = '*';
}
}
}
}
int main(void) {
newmap(3, 3 , 3);
}
//https://pt.stackoverflow.com/q/322134/101
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCnZvaWQgbmV3bWFwKGludCB4LCBpbnQgeSAsIGludCBwbGF5ZXJzKSB7CiAgICBjaGFyICoqbWFwID0gbWFsbG9jKHNpemVvZihjaGFyICopICogeSk7CiAgICBmb3IgKGludCBpID0gMDsgaSA8IHg7IGkrKykgewogICAgICAgIG1hcFtpXSA9IG1hbGxvYyh4KTsKICAgICAgICBmb3IgKGludCBqID0gMDsgaiA8IHk7IGorKykgewogICAgICAgICAgICBpZiAoaSA9PSAwIHx8IGogPT0gMCB8fCBpID09IHggLSAxIHx8IGogPT0geSAtIDEpIHsKICAgICAgICAgICAgICAgbWFwW2ldW2pdID0gJyonOwogICAgICAgICAgICAgICBwcmludGYoIioiKTsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICBwcmludGYoIlxuIik7CiAgICB9Cn0KCmludCBtYWluKHZvaWQpIHsKICAgIG5ld21hcCgzLCAzICwgMyk7Cn0KCi8vaHR0cHM6Ly9wdC5zdGFja292ZXJmbG93LmNvbS9xLzMyMjEzNC8xMDE=