Lines Matching defs:string
886 * each new-line character is replaced with string <nl>.
915 * find index for last line with given string
916 * If flag==0 then line must begin with string
920 Histloc_t hist_find(register History_t*hp,char *string,register int index1,int flag,int direction)
934 index2 = *string;
936 string++;
940 string++;
960 if((location.hist_line=hist_match(hp,offset,string,coffset))>=0)
975 * search for <string> in history file starting at location <offset>
976 * If coffset==0 then line must begin with string
980 int hist_match(register History_t *hp,off_t offset,char *string,int *coffset)
991 n = strlen(string);
994 if(*cp==*string && memcmp(cp,string,n)==0)
1067 char *hist_word(char *string,int size,int word)
1070 register char *s1 = string;
1076 hist_copy(string,size,(int)hp->histind-1,-1);
1094 if(s1 != string)
1095 strcpy(string,s1);
1096 return(string);