EC_EDITLINE_GETS(3)

πŸ“¦
version 0.11.7 Β· 5 versions
, in fedora 44

🌸 EC_EDITLINE_GETS πŸ’–

okay bestie, so this one's from the Libecoli Programmer's Manual, it's a section 3 page, and it's literally just the cute little interactive-line-getter. tiny page, huge vibes. let's go ✨


✨ NAME ✨

ec_editline_gets β€” grab a line interactively (with completion, obviously πŸ’…)


πŸŽ€ SYNOPSIS πŸŽ€

#include <ecoli/editline.h>

char * ec_editline_gets(
    struct ec_editline   *editline   /* The pointer to the ec_editline structure. */
);

πŸ¦‹ DESCRIPTION πŸ¦‹

so this is a lil wrapper around libedit's el_gets(). that's the whole personality ngl.

what it does: it hands you back the edited line without its "0, and then it drops that line into the history. so like, you get the line, history gets the line, everybody's happy 🫢


⭐ RETURN VALUE ⭐

you get back an allocated string holding the edited line. and bestie, listen β€” the caller has to free it with free(). no cap. it's yours now, you clean it up, that's the rule πŸ™ˆ


πŸ‘‘ SEE ALSO πŸ‘‘

the whole friend group, in order:


Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.


and that's the whole page, periodt. this version came from libecoli, dated 2026-06-11, and yeah it's page EC_EDITLINE_GETS(3) β€” mwah, iconic, bye bestie πŸ’…πŸ’–βœ¨

πŸ“¦ where this page comes from