No use of stdio.h
Adding c version which is the same as code base as cython