MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / write_history

Function write_history

extern/editline/src/readline.c:1365–1376  ·  view source on GitHub ↗

* write history to a file given */

Source from the content-addressed store, hash-verified

1363 * write history to a file given
1364 */
1365int
1366write_history(const char *filename)
1367{
1368 HistEvent ev;
1369
1370 if (h == NULL || e == NULL)
1371 rl_initialize();
1372 if (filename == NULL && (filename = _default_history_file()) == NULL)
1373 return errno;
1374 return history(h, &ev, H_SAVE, filename) == -1 ?
1375 (errno ? errno : EINVAL) : 0;
1376}
1377
1378
1379/*

Callers

nothing calls this directly

Calls 3

rl_initializeFunction · 0.85
_default_history_fileFunction · 0.85
historyClass · 0.85

Tested by

no test coverage detected