I was doing it just for testing purposes, though here's the code using the function:
Code:
// In function main
RPGItem* testItem;
testItem.type = 2;
testItem.name = testStr;
test(&testItem);


and the struct so far:
Code:
typedef struct RPGItem
{
	var type;
	int cellsX;
	int cellsY;
	BMAP* bmap;
	STRING* name;
} RPGItem;



Edit: this is the first time I'm trying to use Lite-C so it wouldn't surprise me if I missed something grin
Edit 2: I tried using a pointer-to-a-pointer of an integer instead, and it worked, so I'm probably just missing something smile
Edit 3 grin: Tried this and it does work:
Code:
void test(RPGItem** _temp)
{
	(**_temp).type = 2;
}



Last edited by Claus_N; 07/22/09 13:40.