Original Post
Hello all,
I was just wondering how I could go about solving a small problem I am having with pointers and structures.
I have this in a .h file of mine:
typedef struct
{
int xpos
int ypos
Particles particles
}
ENEMY;
ENEMY enemy[10];
(particles being a structure that i have made up)
so when i am trying to reference this from a function in my c file - such as this, and want to make a nother call to a function from within in this function i need a pointer to the particles within the strcuture
normally i would just go like this
MakeParticles(&particles)
but when i try to go like this:
MakeParticles(enemy[0].particles)
this does not work.
So i was wondering how i can go about getting a pointer to the structure.
Thanks in advance.