Original Post
Hi everyone. I hope the weekend treated everyone well. I am in the painful process of converting one of my programs written in C++ over to C. I am aware of some of the major differences between the two, but I'm afraid I might be missing some specifics. Are constructors / functions for structs allowed in C? E.g., struct Data { int a; Data(int i) { a = i; } int Transfer() { return a; } }; I imagine this wouldn't work, since the "new" operator isn't present in C (right?).