EC_STR_QUOTE(3)
π EC_STR_QUOTE(3) π
okay bestie, so this is a page from the Libecoli Programmer's Manual and it's about one (1) little function that is lowkey a whole vibe. sit with me. π«Ά
β¨ NAME β¨
ec_str_quote β quote a string, escaping nested quotes. it's giving "put a lil jacket on your string so nothing inside it escapes". π§₯β¨
πΈ SYNOPSIS πΈ
#include <ecoli/string.h>
char * ec_str_quote(
const char *str, /* The string to quote. */
/*
* The quote character to use: usually " or ' but can be anything. If 0,
* select between " or ' automatically.
*/
char quote,
/*
* If true, always add quotes, else add them only if the string contains
* spaces or quotes.
*/
bool force
);
π RETURN VALUE π
it hands you back an allocated string, and no cap, you are the one who has to free it β call free() on it yourself, bestie. the function is not your mom, it is not cleaning up after you. π own your memory. π«Ά
π¦ SEE ALSO π¦
the whole friend group, fr fr:
ec_str_parse_llint(3)ec_str_startswith(3)ec_str_is_space(3)ec_strcmp_count(3)ec_str_parse_ullint(3)ec_str_wrap(3)
go read them, they're all iconic in their own way. π
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
and that's the whole page, bestie!! π this one's from libecoli, dated 2026-06-11, and it lives at section EC_STR_QUOTE(3) β go quote some strings, you absolute main character. πβ¨π
π¦ 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