Code:
#include <acknex.h>
#include <default.c>
typedef struct LOLZ
{
STRING* name;
} LOLZ;
LOLZ* mk_lolz(STRING* name)
{
LOLZ* tmp = malloc(sizeof(LOLZ));
tmp.name = name;
return tmp;
}
LOLZ* my_lolz;
function main()
{
my_lolz = mk_lolz("howdee");
}
Think thatll work. But im not sure if its done correctly since the string hasnt been alloocated dynamically. But ive got a feeling that lite-c is doing that automatically somehow.