Click here to Skip to main content
15,885,366 members
Articles / Programming Languages / C

State Machine Design in C

Rate me:
Please Sign up or sign in to vote.
4.99/5 (51 votes)
1 May 2021CPOL19 min read 222.5K   4.8K   83  
A compact C finite state machine (FSM) implementation that's easy to use on embedded and PC-based systems
This article provides an alternate C language state machine implementation based on the ideas presented within the article “State Machine Design in C++”. The design is suitable for any platform, embedded or PC, with any C compiler.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
I've been a professional software engineer for over 20 years. When not writing code, I enjoy spending time with the family, camping and riding motorcycles around Southern California.

Comments and Discussions