freebsd-ports/misc/mshell/files/patch-ae
Jordan K. Hubbard 7883df5ea2 Mshell port from Jean-Marc Zucconi (jmz@thud.cdrom.com). Jean-Marc
is now our leading ports-supplier!  Let's all give him a big THANK YOU! :)
Submitted by:	jmz
1994-09-24 03:57:13 +00:00

22 lines
467 B
Text

*** 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
* ---------------------------------------------------------- */