I haven't coded in C in eons. Refreshing my memory here. This likely won't be of use to anyone but me as it's just a bunch of quick code snippets as I study.