#include <stdio.h>
#include <string.h>
int main(void) {
char buffer[3] = "abc";
char buf_cpy[3];
/*
printf("buffer :");
for (int i = 0; i < 3; i++)
{
printf("%c", buffer[i]);
}
printf("\n");
printf("buf_cpy:");
for (int i = 0; i < 3; i++)
{
printf("%c", buf_cpy[i]);
}
printf("\n");
*/
printf("buffer :%02x\n", buffer
[0]); printf("buffer :%02x\n", buffer
[1]); printf("buffer :%02x\n", buffer
[2]); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4KCmludCBtYWluKHZvaWQpIHsKCWNoYXIgYnVmZmVyWzNdID0gImFiYyI7CgljaGFyIGJ1Zl9jcHlbM107CgkKCW1lbWNweSgmYnVmX2NweSwgJmJ1ZmZlciwgMyk7CgkKLyoKCXByaW50ZigiYnVmZmVyIDoiKTsKCWZvciAoaW50IGkgPSAwOyBpIDwgMzsgaSsrKQoJewoJCXByaW50ZigiJWMiLCBidWZmZXJbaV0pOwoJfQoJcHJpbnRmKCJcbiIpOwoJCglwcmludGYoImJ1Zl9jcHk6Iik7Cglmb3IgKGludCBpID0gMDsgaSA8IDM7IGkrKykKCXsKCQlwcmludGYoIiVjIiwgYnVmX2NweVtpXSk7Cgl9CglwcmludGYoIlxuIik7CiovCglwcmludGYoImJ1ZmZlciA6JTAyeFxuIiwgYnVmZmVyWzBdKTsKCXByaW50ZigiYnVmZmVyIDolMDJ4XG4iLCBidWZmZXJbMV0pOwoJcHJpbnRmKCJidWZmZXIgOiUwMnhcbiIsIGJ1ZmZlclsyXSk7CglyZXR1cm4gMDsKfQo=