#include <stdio.h>
#include <stdlib.h>
int main(void)
{
char *p;
p=malloc(1);
gets(p);
printf("%s\n",p);
return 0;
}
1バイト割り当てたんだが。
16文字まで読み込めるのは何故?
2バイトになってるんだけど。