#define BUFSIZE 100  이 버퍼 부분이 어떻게 처리되는지 이해가 잘 안가네요 ㅠㅠ 주석 부탁드립니다..진짜 답답합니다 ㅠㅠ

char buf[BUFSIZE]; // buffer for ungetch
int bufp = 0;  // next free position int buf

int getch(void)// get a (possibly pushed back) character
{
 return (bufp > 0 )? buf[--bufp] : getchar();
}

void ungetch(int c) // push character back on input
{
 if(bufp >= BUFSIZE)
  printf("ungetch: too many charcater \n");
 else
  buf[bufp++]=c;
}

이 게시물을..