mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-15 23:50:44 +00:00
19 lines
408 B
Plaintext
19 lines
408 B
Plaintext
*** lesson.c.orig Sun May 18 14:54:37 1997
|
|
--- lesson.c Tue Jun 24 11:11:21 1997
|
|
***************
|
|
*** 72,78 ****
|
|
--- 72,84 ----
|
|
|
|
nocbreak();
|
|
|
|
+ #ifdef __FreeBSD__
|
|
+ (void)fgets(response,STR_SIZE + 1,stdin);
|
|
+ for (lp = response; *lp != '\n'; lp++) ;
|
|
+ *lp='\0';
|
|
+ #else
|
|
(void)gets(response);
|
|
+ #endif
|
|
|
|
cbreak();
|
|
for (lp = response; *lp == ' ' || *lp == '\t'; lp++) ;
|