Just to leave it clear: The only change I did was to rewrite devd.cc in C, and append a file that implements vectors in C. The code it's still the same (I hope), just different language.