01110100110101010101011101100010
Simple Finite State Machines in C
I was having discussion about State Machines with one of my friend, regarding pro’s and con’s of implementing programs as Sate Machines, it was then that i realised there is no simple way to implement programs as Finite State Machines, so here is a very basic implementation of FSM in C
file: fsm.h contains the function definition for our FSM
file: fsm.c contains the function implementation for our FSM
file: main.c contains an example on how this FSM can be used
PS – If you are reading this post on a blog aggregator like planet you can view full post here
| Print article | This entry was posted by Ankur Shrivastava on April 5, 2010 at 3:12 am, and is filed under C, college, fedora. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |




Pingback: Ankur Shrivastava: Simple Finite State Machines in C | TuxWire
Pingback: Tweets that mention Uncertain Binary Thoughts » Blog Archive » Simple Finite State Machines in C -- Topsy.com