I have the following:
unsigned char* myArray[20];
What I want to be able to do is the following:
unsigned char* myPointer;
myPointer = myArray[0];
if (myPointer[3] == NULL) {
...
In other words, I want to have an array of unsigned char pointers and then have another single char pointer that points to the start of the array and still be able to access it as an array through the single pointer, indirectly so to speak.
(The problem I'm trying to solve is that I have a bunch of arrays of pointers to images that I iterate through, frames of animation actually, and when I call a certain function I need to check if the current frame's pointer is NULL, meaning I've reached the end of the animation sequence. The problem is, I can do this by a giant if block to check the correct array I'm currently using, but obviously it would be better if I could have a pointer to the array that I can access because that way the function doesn't have to know which sequence is currently in use. Make sense??)
I'm sure I have some basic syntax wrong somewhere. I figure, the first part of wisdom is being able to say "I don't know".
Well, consider me one wise bastard than!
