Skip to main content

All Questions

2 votes
2 answers
639 views

Simulated functional programming in C -- passing the entire program state as a function argument

I have a struct called State which holds all the variables for the program. Rather than being modified by functions directly, it is the value returned. Here is some code: #define USERNAME_LENGTH 20 #...
ridthyself's user avatar