spupng port to C (#19)