[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] pointer to functions
From: |
Rune Christensen |
Subject: |
[avr-gcc-list] pointer to functions |
Date: |
Tue, 15 Apr 2003 11:25:34 +0200 |
Hello
I need to make a struct with two pointers called init and done.
typedef struct
{
init
done
} sblock;
In the main there should be something like this
sblock sb;
sb.init = &(loginit());
sb.done = &(logdone());
It should be possible to write
init()
done()
But can that be done in a AT90s8515 ??
And how is the syntax ??
Best regards
Rune Christensen
Student at www.dtu.dk
address@hidden
- [avr-gcc-list] pointer to functions,
Rune Christensen <=