Lines Matching defs:s1
1049 * copy command <command> from history file to s1
1051 * if s1==0 the number of lines for the command is returned
1057 int hist_copy(char *s1,int size,int command,int line)
1062 register char *s1max = s1+size;
1075 if(s1 && (line<0 || line==count))
1077 if(s1 >= s1max)
1079 *--s1 = 0;
1082 *s1++ = c;
1087 if(s1==0)
1089 if(count && (c= *(s1-1)) == '\n')
1090 s1--;
1091 *s1 = '\0';
1102 register char *s1 = string;
1103 register unsigned char *cp = (unsigned char*)s1;
1121 s1 = (char*)cp;
1126 if(s1 != string)
1127 strcpy(string,s1);