Help with non object oriented design?
Hi, I have been learning c for a while now, and, even though I can understand c code and I'm fairly familiar with the standard library, I don't know how to organize my code.
I learned programming with oo languages, so since I moved to c, I wasn't able to program without trying to "emulate" oop(creating a struct and a set of functions to act upon this struct, for example: "createPlayer(Player * this)", "movePlayer(Player * this)").
I know that c is procedural, and I don't want to use this (hackish) technique for designing programs.
So, the question is: how should I design my modules/programs in c? how should I be thinking about modules and what about entities(classes)? This is kind of a broad question, but as all the tutorials and resource are oop, I don't have any idea on how to write c code without using oo.
Any help appreciated!