Add non-recursion at C code