![]() ![]() | ![]() |
Initial revision
#include <stdio.h> #include <string.h> #include <freem.h> int main(int argc, char **argv, char **envp) { freem_ref_t ref; /* we're setting a global */ ref.reftype = MREF_RT_GLOBAL; /* access global "car" */ strcpy(ref.name, "car"); /* set up the subscripts */ ref.subscript_count = 1; strcpy(ref.subscripts[0], "color"); /* use the USER namespace */ freem_init("USER"); /* write the data out */ freem_set(&ref); }