janetsmith2000@yahoo.com
New Member
Hi,
if i want to initialize a static variable in a function, i could write
void test() {
static int8 number = 0x88;
printf("number: %2X", number++);
}
But if i want to initialize a static structure in a function, what should i do?
typedef struct _NUM {
BYTE a;
BYTE b;
} NUM;
if i want to initialize a static variable in a function, i could write
void test() {
static int8 number = 0x88;
printf("number: %2X", number++);
}
But if i want to initialize a static structure in a function, what should i do?
typedef struct _NUM {
BYTE a;
BYTE b;
} NUM;