Lines Matching refs:last
35 * to read the file from beginning to end to get to the last block of
63 off_t histmarker; /* offset of last command marker */ \
69 off_t histcmds[2]; /* offset for recent commands, must be last */
181 char *buff, *cp, *last;
196 id1 = id2 = strtol(cp,&last,10);
197 if(*last=='-')
198 id1 = strtol(last+1,&last,10);
203 cp = last;
335 int first,last;
338 hist_eof(hp); /* this sets histind to last command */
339 if((hist_start = (last=(int)hp->histind)-maxlines) <=0)
353 hp->histind = last;
456 * Copy the last <n> commands to a new file and make this the history file
472 char *last, *name=hist_old->histname;
475 if(last = strrchr(name,'/'))
477 *last = 0;
479 *last = '/';
885 * if character <last> appears before newline it is deleted
889 void hist_list(register History_t *hp,Sfio_t *outfile, off_t offset,int last, char *nl)
903 else if(last && (c==0 || (c=='\n' && oldc==last)))
915 * find index for last line with given string