en off ru

Exactly how much of a PITA is this in C? It's written in C++. Hence my question. I could do something like it in C. Anyone who saw the results would think I was either a genius or out of my fucking mind. They'd be right on either count.