I suggest joining the IB TWS API Yahoo Group. One of the group members maintains a C++ abstraction library for the TWS API that I use in my applications. It *greatly* simplifies app development.
I'm not clear why you're limiting yourself to C. If portability is an issue, C++ isn't a...