1 #include "builtin.ih"
2 
3 /*
4     enter the first of a series of characters, terminated by \n. The first
5     char may be a \n
6 */
7 
eb_enterCh()8 int eb_enterCh()
9 {
10     int ch = getchar();
11     if (ch != '\n')
12     {
13         while (getchar() != '\n')
14             ;
15     }
16     return ch;
17 }
18