summaryrefslogtreecommitdiff
path: root/misc/mshell/files/patch-ae
blob: 928f9c25b1d7721e09a96380958bce1068d07016 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
*** string.c.orig	Fri Sep 23 18:34:06 1994
--- string.c	Fri Sep 23 18:50:39 1994
***************
*** 4,9 ****
--- 4,20 ----
  #define strchr	index
  #endif
  
+ char *
+ gets (char *s)
+ {
+     char *x = fgets (s, WORDLEN, stdin);
+     if (x) {
+ 	char *p = strchr (x, '\n');
+ 	if (p) 
+ 	    *p = 0;
+     }
+     return x;
+ }
  
  /* function to find the position of sub_string in main_string 
   * ---------------------------------------------------------- */