c-function in 4GL code, with mismatch parameter.
Posted in 1995
Hi, I have a piece of 4GL code which calls a C-function. What I don't understand is, the 4gl passes 2 parameter and c-receives one. It works fine, but not sure how. Could someone help me here!! The code is as follows. #------------------------------------------------- # called frok 4GL program; passes two parameter #------------------------------------------------- DEFINE q_cnt INTEGER, q_cur INTEGER, the_rowid INTEGER, ...... ..... CALL w_rowid_s(q_cur, the_rowid) ...... ..... ........................... c functuion; recrives one ........................... w_rowid_s(arg) int arg; { int pos, value; popint(&value); popint(&pos); ptr[pos] = value; return(0); } thanks, Ramki