LIBMAWK_SET_CELL(3libmawk)
π LIBMAWK_SET_CELL β the mawk cell glow-up manual π
okay bestie, you're reading the libmawk manual page for LIBMAWK_SET_CELL(3libmawk) and honestly? this one's a bop. it's short, it's sweet, and it lets you rewrite what a mawk variable holds. main character energy for real π
β¨ NAME β¨
libmawk_set_cell β set the value of a mawk cell. that's it. that's the whole job. giving "makeover montage but for a variable" π
πΈ SYNOPSIS πΈ
#include <libmawk.h>
CELL *libmawk_set_cell(mawk_state_t *m, CELL *cell, const charargtype,...);
CELL *libmawk_set_cellp(mawk_state_t *m, CELL *cell, const charargtype,
void *argp);
π¦ DESCRIPTION π¦
so the libmawk_set_cell() function modifies the value of a mawk cell (aka a variable, aka the little guy holding your data). the argument argtype is a format character that describes the type of the payload β and you get to that payload through the vararg. no cap. π
the libmawk_set_cellp() function does the exact same thing, but it takes a generic pointer to the payload instead. same slay, different doorway πͺβ¨
the format character is one of the followings, and yes it's literally just one letter each:
'd'β forintpayload'f'β fordoublepayload's'β for (zero terminated)char *payload
and argument m? that's a libmawk context, previously returned by libmawk_initialize() or libmawk_initialize_stage3(). don't just make one up out of thin air bestie, it has to come from there π«Ά
π RETURN VALUE π
a pointer to the cell modified. you get the cell back. it's giving "here's your variable, post-glow-up" π
π₯ SEE ALSO π₯
lowkey the whole page in one vibe: you hand it a cell and a type letter, it hands you back the cell, and everybody eats. no cap. πβ¨
and that's the whole thing!! this was the libmawk manual, dated 2009-08-10, filed under LIBMAWK_SET_CELL(3libmawk). go set some cells, bestie, you got this π§π
π¦ 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