Error 114 is a well known problem with older releases of MicroFocus, also when COBOL programs call other language programs with the parameters using the wrong call convention. I am not a C programmer, and I cannot help you there, but make sure your parameters are the same number, same size and in the right order.
Mike