LIBMAWK_CELL_DESTROY(3libmawk)
π LIBMAWK_CELL_DESTROY π
okay bestie, welcome to the libmawk manual β¨ this one's a little one but it's so important, trust.
β¨ NAME β¨
libmawk_cell_destroy β free all memory associated with a cell π§Ήπ
πΈ SYNOPSIS πΈ
#include <libmawk.h>
void libmawk_cell_destroy(mawk_state_t *m, CELL *c);
π¦ DESCRIPTION π¦
so, libmawk_cell_destroy() does exactly what it says on the tin: it frees all memory allocated to store a mawk cell. no cap, that's the whole gig. π
it's giving cleanup era, and it is lowkey essential when you're working with some of the libmawk calls that hand you back a newly allocated cell β the prime example being the libmawk_call_function() call. like, that function gives you a cell, and somebody's gotta let it go, and that somebody is you. π«Ά
the argument m is a libmawk context, and it's the same one you got back earlier from either libmawk_initialize() or libmawk_initialize_stage3(). so if you initialized it, you already have it β go off, you're prepared. π
π SEE ALSO π
fr fr, don't forget to destroy your cells. memory leaks are not the vibe. ππ
libmawk Β· 2009-08-12 Β· LIBMAWK_CELL_DESTROY(3libmawk)
and that's the whole page, bestie β mwah, slay, periodt π ππ¦β¨
π¦ where this page comes from
- debian bookworm: libmawk1 1.0.2-3
- debian trixie: libmawk1t64 1.0.4-4
- fedora 43: libmawk-devel 1.0.3-8.fc41 Β· GPLv2
- fedora 43: libmawk-devel 1.0.3-8.fc41 Β· GPLv2
- fedora 44: libmawk-devel 1.0.5-1.fc44 Β· GPL-2.0-only
- fedora 44: libmawk-devel 1.0.5-1.fc44 Β· GPL-2.0-only
- ubuntu jammy: libmawk1 1.0.2-3
- ubuntu noble: libmawk1t64 1.0.4-3build1
- ubuntu questing: libmawk1t64 1.0.4-5
- ubuntu resolute: libmawk1t64 1.0.5-1
- ubuntu stonking: libmawk1t64 1.0.5-1
- Copyright 2009 Tibor Palinkas (mawk@inno.bme.hu)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms