EC_YAML_IMPORT(3)
π EC_YAML_IMPORT β bestie edition π
okay so we're in the libecoli programmer's manual rn and today's main character is ec_yaml_import(3). yes it's a section 3 page, yes it's giving "C function", yes you're gonna slay it. π§β¨
πΈ NAME πΈ
ec_yaml_import β parse a YAML file and build an ec_node tree from it. that's the whole vibe. read YAML, make tree. π
β¨ SYNOPSIS β¨
#include <ecoli/yaml.h>
struct ec_node * ec_yaml_import(
const char *filename /* The path to the file to be parsed. */
);
like. one include. one function. one argument. it's giving minimalist queen. π
π₯ RETURN VALUE π₯
so what do you get back? depends on how it goes bestie:
- success β you get the
ec_nodetree. iconic. ate. no notes. π - error β you get
NULL, anderrnois set. yeah she's not happy. π
β οΈ okay this part is important and I need you to lock in: the node that gets returned is yours to free. the caller has to clean it up with ec_node_free(). no leaving it lying around, no ghosting your memory, that's not the vibe. π«Ά
π SEE ALSO π
ec_yaml_export(3)β the other half of the situationship. it does the opposite direction, iykyk. π
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry. periodt. π
okay that's the whole page bestie, tysm for reading π¦ this was libecoli, dated 2026-06-11, and honestly? she ate. go build your tree. mwah. π πΈβ¨
π¦ 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