I need to use the below global structure defined in code1.c in another code2.c
struct memIOptrs
{
const char *name;
unsigned char *virtptr;
}MEM_IO_PTRS[20];
I have a header file for the project codes.h, how should the structure be declared here.
Also, what if the structure was typedef like,
typedef struct memIOptrs
{
const char *name;
unsigned char *virtptr;
}MEMIOPTRS;
MEMIOPTRS MEM_IO_PTRS[20];