hello,

I have an unsigned char array which is basically 17bytes long with a null terminator

in the form 0 0 : 1 1 : 2 2 : 3 3 : 4 4 : 5 5 \0

i can take the \0 off easily, but i would like to know how i can make a 6 byte array

in the form 00 11 22 33 44 55


this is what little code i have so far, however this only creates the 18 byte array which i dont want...
Code:
for(iterator = 0; iterator < num_hosts; iterator++){
	while(i < 17){
	//printf("%c",return_string[i+1]);
	bdaddr[i] = return_string[iterator*25+i+1];
	i++;
	}
	bdaddr[17+1] = 0x00;
	printf("device: %s ",bdaddr);
	i = 0;
	//get_device_name(bdaddr, &remote_name);
	//printf("name: %s\n\n",remote_name);
}
thanks for your help