Is it possible to do operator overloading or something similar (inline function?) in C? I know that c does not support class, but could I make an operator for a struct?
I cannot find anything about this online, because Google will ignore ‘+’ so if I try to google this I only get C++ results.
No, you can’t do that in C. Use C++ if you want to overload operators.
You can put function pointers inside a structure if you want a sort of C++ object-like behaviour.