Searched refs:tocopy (Results 1 – 1 of 1) sorted by relevance
1214 int tocopy = history_len; in linenoiseHistorySetMaxLen() local1220 if (len < tocopy) { in linenoiseHistorySetMaxLen()1223 for (j = 0; j < tocopy-len; j++) free(history[j]); in linenoiseHistorySetMaxLen()1224 tocopy = len; in linenoiseHistorySetMaxLen()1227 memcpy(new,history+(history_len-tocopy), sizeof(char*)*tocopy); in linenoiseHistorySetMaxLen()