diffr/patchr implementation in C.