fork(1) download
  1. #include <stdio.h>
  2.  
  3. struct module {
  4. const char *name;
  5. int (*init)(int);
  6. };
  7.  
  8. static int x_init(int x)
  9. {
  10. return x + 33;
  11. }
  12.  
  13. struct module module_x = {
  14. "hello",
  15. x_init,
  16. };
  17.  
  18. static const struct module *modules[] = {
  19. &module_x,
  20. };
  21.  
  22. int main(void) {
  23. // your code goes here
  24. return 0;
  25. }
  26.  
Success #stdin #stdout 0s 5420KB
stdin
Standard input is empty
stdout
Standard output is empty