#include <stdio.h>
#include <stdlib.h>

int main() {
char *po;
if ((po = (char *)malloc(sizeof(char) * 128)) == NULL) {
fprintf(stderr , "メモリが足りません");
exit(1);
}
po = "Kitty on your lap"; /* なんのためにmallocしたんだよ */

printf(po); /* %s使え */
free(po); /* mallocした覚えのないものをfreeするな */
return 0;
}