add getchar_purchar.c

add getchar_purchar.c