* clear the history list - delete all entries */
| 1513 | * clear the history list - delete all entries |
| 1514 | */ |
| 1515 | void |
| 1516 | clear_history(void) |
| 1517 | { |
| 1518 | HistEvent ev; |
| 1519 | |
| 1520 | if (h == NULL || e == NULL) |
| 1521 | rl_initialize(); |
| 1522 | |
| 1523 | (void)history(h, &ev, H_CLEAR); |
| 1524 | history_length = 0; |
| 1525 | } |
| 1526 | |
| 1527 | |
| 1528 | /* |
nothing calls this directly
no test coverage detected