| 1816 | } |
| 1817 | |
| 1818 | void load_readline_history() |
| 1819 | { |
| 1820 | char *home; |
| 1821 | if ((home = getenv("HOME")) == NULL) |
| 1822 | return; |
| 1823 | char histfile[] = "/.cdb2sql_history"; |
| 1824 | if ((history_file = (char *) malloc(strlen(home) + sizeof(histfile))) |
| 1825 | == NULL) |
| 1826 | return; |
| 1827 | sprintf(history_file, "%s%s", home, histfile); |
| 1828 | read_history(history_file); |
| 1829 | } |
| 1830 | |
| 1831 | #define HISTFILE_COMMANDS 200 |
| 1832 | void save_readline_history() |