Skip to content

This shows how to use enums, structs and function pointers in C to create a clean design for a very modular state machine.

License

Notifications You must be signed in to change notification settings

mmelchger/polling_state_machine_c

Repository files navigation

polling_state_machine_c

This shows how to use enums, structs and function pointers in C to create a clean design for a very modular state machine.

Tested under Linux only, compiles with:

gcc main.c my_exit_actions.h my_entry_actions.h my_states.h my_transitions.h my_exit_actions.c my_entry_actions.c my_states.c my_transitions.c state_machine.o

About

This shows how to use enums, structs and function pointers in C to create a clean design for a very modular state machine.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published