brownt
Member level 3
I have a program that uses a typedef struct, and passes the address of that through to a function.
Things work ok when the type based on the struct is declared in main(), but when it is declared outside of main(), the program no longer works. there are no error messages, but now the functions within the that used the passed through struct, no longer work.
I realise may more info is required, but thought I would start with this.
thanks
Things work ok when the type based on the struct is declared in main(), but when it is declared outside of main(), the program no longer works. there are no error messages, but now the functions within the that used the passed through struct, no longer work.
I realise may more info is required, but thought I would start with this.
thanks