컴파일러1 [01] wc main.c#include #include extern void countfile(), printtotal(); main(int argc, char *argv[]) { register FILE *fp; register int i; if (argc == 1) countfile(stdin, ""); else { i = 1; while (i 2) printtotal(); } exit(0); } wc.c #include #define BufSize 16#define Sentinel '\0'static unsigned char buf[BufSize*2+1];static unsigned char *lexeme_beginning, *forward;#define NextChar() ((*forward)? *forwar.. 2019. 3. 20. 이전 1 다음