fork(3) download
  1. #include <stdio.h>
  2.  
  3. typedef int bool;
  4.  
  5. struct STATUSTRANSITION;
  6.  
  7. typedef struct
  8. {
  9. char name[3];
  10. bool initial_state;
  11. bool final_state;
  12. struct STATUSTRANSITION *transitions;
  13. int numberTransitions;
  14. } STATE;
  15.  
  16. typedef struct STATUSTRANSITION
  17. {
  18. char c;
  19. STATE final;
  20. } STATUSTRANSITION;
  21.  
  22. int main(void) {
  23. STATE s = {.name = "aa"};
  24. STATUSTRANSITION st;
  25. s.transitions = &st;
  26. printf("%s\n", s.name);
  27. return 0;
  28. }
  29.  
Success #stdin #stdout 0s 2156KB
stdin
Standard input is empty
stdout
aa