title: How to update old C code?
body: <p>I have been working on some 10 year old C code at my job this week, and after  implementing a few changes, I went to the boss and asked if he needed anything else done. That's when he dropped the bomb. My next task was to go through the 7000 or so lines and understand more of the code, <em>and</em> to modularize the code somewhat. I asked him how he would like the source code modularized, and he said to start putting the old C code into C++ classes.</p>
  
  <p>Being a good worker, I nodded my head yes, and went back to my desk, where I sit now, wondering how in the world to take this code, and "modularize" it. It's already in 20 source files, each with its own purpose and function. In addition, there are three "main" structs. each of these structures has 30 plus fields, many of them being other, smaller structs. It's a complete mess to try to understand, but almost every single function in the program is passed a pointer to one of the structs and uses the struct heavily.</p>
  
  <p>Is there any clean way for me to shoehorn this into classes? I am resolved to do it if it can be done, I just have no idea how to begin.</p>