File:
[Coherent Logic Development] /
freem /
examples /
libfreem /
kill /
kill.c
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs
Sun Jan 19 02:04:04 2025 UTC (2 months, 3 weeks ago) by
snw
Branches:
MAIN,
CoherentLogicDevelopment
CVS tags:
v0-63-1-rc1,
v0-63-0-rc1,
v0-63-0,
v0-62-3,
v0-62-2,
v0-62-1,
v0-62-0,
start,
HEAD
FreeM
#include <stdio.h>
#include <string.h>
#include <freem.h>
int main(int argc, char **argv, char **envp)
{
freem_ref_t ref;
/* we're killing a global node */
ref.reftype = MREF_RT_GLOBAL;
/* access global "car" */
strcpy(ref.name, "car");
/* set up the subscripts */
ref.subscript_count = 0;
/* use the USER namespace */
freem_init("USER");
/* kill the global and all its descendant subscripts */
freem_kill(&ref);
}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>