fork(1) download
  1. typedef void (*function)(unsigned int parameter, struct Device_Parameters* device);
  2.  
  3. typedef struct Device_Parameters
  4. {
  5. int test1;
  6. int test2;
  7. unsigned char ttest;
  8. function func;
  9. } Device_Parameters;
  10.  
  11. void func(unsigned int a, Device_Parameters* dev)
  12. {
  13. return;
  14. }
  15.  
  16. int main()
  17. {
  18. Device_Parameters dev = {10, 20, 15, func};
  19. dev.func(10, &dev);
  20.  
  21. return 0;
  22. }
Success #stdin #stdout 0s 1828KB
stdin
Standard input is empty
stdout
Standard output is empty