Lines Matching refs:s1
795 * copy command <command> from history file to s1
797 * if s1==0 the number of lines for the command is returned
803 int hist_copy(s1,command,line)
804 register char *s1;
810 register char *s1max = s1+MAXLINE;
825 if(s1 && (line<0 || line==count))
827 if(s1 >= s1max)
829 *--s1 = 0;
832 *s1++ = c;
837 if(s1==0)
839 if(count && (c= *(s1-1)) == '\n')
840 s1--;
841 *s1 = '\0';
849 char *hist_word(s1,word)
850 char *s1;
854 register char *cp = s1;
862 hist_copy(s1,hist_ptr->fixind-1,-1);
875 s1 = cp;
880 return(s1);