EC_EDITLINE_SET_HISTORY(3)
π EC_EDITLINE_SET_HISTORY β bestie edition π
okay so this is a page from the Libecoli Programmer's Manual, and it's about ec_editline_set_history π the girl whose whole job is literally just... changing your history size. iconic behavior tbh.
β¨ NAME β¨
ec_editline_set_history β Change the history size. πβ¨
β¨ SYNOPSIS β¨
bestie, here's the whole vibe, character for character, no edits, no notes:
#include <ecoli/editline.h>
int ec_editline_set_history(
struct ec_editline *editline, /* The pointer to the ec_editline structure. */
size_t hist_size, /* The desired size of the history. */
/*
* Optional file path to load and write the history to.
*/
const char *hist_file
);
so you pass in your editline pointer, the size you want, and optionally a file path to load and write the history to π«Ά the comments are right there in the code, they're part of the vibe, do not touch them π
β¨ DESCRIPTION β¨
okay so the default? the default behavior is that you get a history whose size is literally EC_EDITLINE_HISTORY_SIZE. that's the starting point, the factory setting, the out-of-the-box moment β¨
and this function? this function is how you change that π« that's it, that's the whole plot. you call it, you say "actually bestie, I want this size", and the history size becomes what you asked for. slay.
β¨ RETURN VALUE β¨
0on success β we ate, no crumbs π-1on error, anderrnois set β so go readerrno, it's telling you what went wrong, fr fr π
π SEE ALSO π
the whole friend group, all of them, in order, exactly as listed:
ec_editline_get_el(3)ec_editline_set_prompt(3)ec_editline_complete(3)ec_editline_set_prompt_esc(3)ec_editline_parse(3)ec_editline_free(3)ec_editline_term_size(3)ec_editline_gets(3)ec_editline_interact(3)ec_editline_set_node(3)ec_editline(3)ec_editline_get_node(3)ec_editline_curline(3)
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
ngl that's the whole page. no cap, no extra lore, just history size management and respect for the authors π
and that's the tea, bestie π¦ β this was libecoli, dated 2026-06-11, from the Libecoli Programmer's Manual. mwah, bye πβ¨
π¦ where this page comes from
- fedora 44: libecoli-devel 0.11.7-1.fc44 Β· BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
- fedora 44: libecoli-devel 0.11.7-1.fc44 Β· BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms