im going to risk getting a beating, because this is something i should (used to?) know...
anyhoo, given a function, how do you tell the size of the array that is passed? obviously trying to find the sizeof the pointer doesn't work (it returns the size of the pointer, duh)
but im having a brainfart trying to remember how to find the size of the passed array...
void myFunction (char * myString)
{
size_t len = sizeof(myString)
// gives size of pointer, not string
}
assume the string being pointed to is properly declared and of a significant length.
.