Hey DuskTrader,

From what I understand of lite-c, sizeof(array) gives the size of the pointer rather than the array, so you need to pass the number of elements to your function. Try...

Code:
function myfunction(char **assets, int ElementCount)
{
	printf("\n\nin function now...");

	int i;
	for(i=0; i<=ElementCount; i++)
	{
		printf("\nin loop: assets[%i]= %s",i,assets[i]);
		asset(assets[i]);
		printf("\ncurrent asset= %s",Asset);
	}
}

function main()
{
	const char *assets[5];
	assets[0] = "EURUSD";
	assets[1] = "GBPUSD";
	assets[2] = "USDCAD";
	assets[3] = "NZDUSD";
	assets[4] = "GBPCHF";

	myfunction(assets, 5);
}



Hope that hits the spot.


Have fun!
Radar =8^)