EC_STRVEC_SH_LEX_STR(3)
β¨ NAME β¨
okay so bestie, welcome to ec_strvec_sh_lex_str from the Libecoli Programmer's Manual π β she splits a string into multiple tokens following basic shell lexing rules. like, that's her whole thing. periodt π
πΈ SYNOPSIS πΈ
#include <ecoli/strvec.h>
struct ec_strvec * ec_strvec_sh_lex_str(
const char *str, /* The string to split. */
ec_strvec_flag_t flags, /* Options for controlling behavior. */
/*
* If not NULL and if the provided string has an unterminated quote. The
* opening quote will be stored here.
*/
char *unclosed_quote
);
so you pass in the str you wanna split, some flags for controlling behavior, and unclosed_quote β and listen, that last one is lowkey important: if it's not NULL and the string you handed over has an unterminated quote, the opening quote gets stored there. iykyk π¦
π§ STRUCTURES π§
the flag vibes, in all their glory:
enum ec_strvec_flag_t {
EC_STRVEC_STRICT;
EC_STRVEC_TRAILSP;
};
π RETURN VALUE π
you get the new strvec object back β or NULL on error, and in that case errno is set π no cap, always check her.
π SEE ALSO π
go read these too, bestie, they're the whole friend group:
ec_strvec_set_attrs(3)ec_strvec_del_last(3)ec_strvec_val(3)ec_strvec_cmp(3)ec_strvec_sort(3)ec_strvec_from_array(3)ec_strvec_get_attrs(3)ec_strvec_dup(3)ec_strvec_set(3)ec_strvec_len(3)ec_strvec_dump(3)ec_strvec_add(3)ec_strvec_free(3)ec_strvec(3)ec_strvec_ndup(3)
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
and that's the whole page, bestie π«Ά tysm for reading, she's from libecoli, dated 2026-06-11, and honestly? iconic. slay π β¨
π¦ 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