I'm working on programming a microcontroller in C for an I/O circuit board board; it communicates to a computer which is running applications written in C++. My partner, who is working on the PC code, helped write the initial communications routines for the MCU in C.
Initially the code confused me, because it seems to be written in object oriented style, with lots of passing structs around, get() and set() type routines, etc.
Is it typical for more advanced programmers to write code like this in C? Should I attempt to make the rest of my code more "object oriented" like this as well?
Is it beneficial in C to use static global variables and get() set() methods? Or should this be left to object oriented languages?