To create an LCI, you use the function AllocLocalItem():
lci = AllocLocalItem (type, id, ident, datasize);
If successful, you will be returned a pointer to an LCI having the
specified type, ID, and identification values; and with datasize bytes of
buffer space for your application to use.