#include <stdio.h>
typedef struct{
int x;
int y;
}coordinate;
coordinate move_x(coordinate player);
int main(void) {
coordinate me = {1,2};
coordinate new_me = move_x( me );
printf("new_me(%d, %d)",new_me.
x,new_me.
y);
return 0;
}
coordinate move_x(coordinate player)
{
player.x +=1;
return player;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp0eXBlZGVmIHN0cnVjdHsKCWludCB4OwoJaW50IHk7Cn1jb29yZGluYXRlOwoKY29vcmRpbmF0ZSBtb3ZlX3goY29vcmRpbmF0ZSBwbGF5ZXIpOwoKaW50IG1haW4odm9pZCkgewoJCgljb29yZGluYXRlIG1lID0gezEsMn07CgkKCWNvb3JkaW5hdGUgbmV3X21lID0gbW92ZV94KCBtZSApOwoJCglwcmludGYoIm5ld19tZSglZCwgJWQpIixuZXdfbWUueCxuZXdfbWUueSk7CgkKCXJldHVybiAwOwp9Cgpjb29yZGluYXRlIG1vdmVfeChjb29yZGluYXRlIHBsYXllcikKewoJcGxheWVyLnggKz0xOwoJCglyZXR1cm4gcGxheWVyOwp9Cgo=