I have the following case:
An array is defined as an unsigned integer:
uint8 myArray[6][10] = {"continent","country","city","address", "street", "number"};
Now I want to get for example the index of the string "city". I imagine to do something like this:
uint8 idx;
for(idx = 0; idx < sizeof(myArray)/sizeof(myArray[0];i++))
{
if((myArray[idx]) == "city") // This can not work because the array is an uint8 array
{
/*idx = 2 ....*/
}
}
What is the correct way to do it without using functions from string.h like strcpy etc...