I have an array uint8_t arr[512]
and I need to store a string, IP address and a 32digit number in this array. So I thought of defining another array of strings as below.
uint8_t *ch[] = {
"abcd",
"1.1.1.1",
"123456782341223344445"
};
Then do a memcpy
into the arr[512]
. Is this OK? I think I may not be able to retrieve the IP address from the arr
. Any other ideas please. Thanks for your time.