EC_LOG_FCT_REGISTER(3)
π EC_LOG_FCT_REGISTER π
okay so bestie, welcome to EC_LOG_FCT_REGISTER(3) from the Libecoli Programmer's Manual β yes we're in section 3, we're in the library, we're thriving β¨
This one is called ec_log_fct_register and its whole vibe is: you get to register a user log function. that's it. that's the girl. she's a lil registrar π
β¨ NAME β¨
ec_log_fct_register β Register a user log function. π
πΈ SYNOPSIS πΈ
#include <ecoli/log.h>
int ec_log_fct_register(
/*
* Function pointer that will be invoked for each log call. If the
* parameter is NULL, ec_log_default_cb() is used.
*/
ec_log_t usr_log,
void *opaque /* Opaque pointer passed to the log function. */
);
okay so let's talk about these two little guys:
usr_logβ this is the function pointer that gets invoked for each log call. and listen, if you hand itNULL? no stress,ec_log_default_cb()is used instead. she's the understudy and she's ready π«Άopaqueβ an opaque pointer that gets passed to the log function. mysterious. iconic. we don't ask what's inside, we just pass her along π
π¦ RETURN VALUE π¦
0on success π-1on error π (anderrnois set, so go check on her)
π SEE ALSO π
the whole friend group, fr fr:
ec_log_level_set(3)ec_vlog(3)ec_log_level_get(3)ec_log_name(3)ec_log(3)ec_log_default_cb(3)ec_log_type_register(3)
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
no cap, that's the whole page. go register your function, bestie, it's giving main character energy π
libecoli Β· 2026-06-11 Β· EC_LOG_FCT_REGISTER(3) β mwah, that's a wrap, iykyk πβ¨π
π¦ 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