Hello everybody,
I have spend the last 6 hours on trying to access a char * type within a static struct without success. I guess I use the pointers wrong but after trying "everything" I am pretty lost right now. So hopefuly someone of you can help me.
I have given a:
typedef char * msg;
and the following struct:
static struct queue{
msg message;
struct queue * next;
}myQueue;
I have a method which gives me a msg-type, all i want is to make this msg-type accessable by saving it into the struct which is static.
But codes like myQueue.message = "received message parameter" only seem to work within the scope of the function and not like a static variable should.
Any suggestions?
Lars