hello everyone,

i have a for looop that iterates through an array of bytes, each two byte sequence is a 2 byte wide character, i need to print each two byte sequence to a wchar_t array. I have written some code but i need a few pointers on where to go from here:

Code:
	for(i = 0 ; i < name_len ; i++){
		swprintf(&file_name[i], 1, L"%C",((((u8_t *)p->payload)[i+6] << 8) | ((u8_t *)p->payload)[i+6+1]));
		printf("%C",file_name[i]);
	        }
but that yields a 00000000... etc array

thanks for your help!