Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct Foo {
- int something;
- }
- static Foo foo;
- void something_else(void (*getNextValue)(void))
- {
- getNextValue();
- }
- void some_callback(void)
- {
- foo.something = 5
- }
- int main(void)
- {
- foo = ...
- something_else(myarray, 10, getNextRandomValue);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement