ansidyn2.pc sample program output.
Hi All,
I have certain clarifications on the output of the sample program ansidyn2.pc output. When I compile and run the code, I am printing the length of the data returned using REF RETURNED_LENGTH. When I give the output array size as 1 then I am getting proper expected value (ie) example below
[oracle@lang-gang vesubsub]$ ./ansidyn2
username: scott
password: tiger
Connected to ORACLE as user scott.
SQL> select * from emp where empno in (7369,7499);
Enter value for output array size (max is 100) : 1
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7369[0x4][4] SMITH[0x5][5] CLERK[0x5][5] 7902[0x4][4] 17-DEC-80[0x9][9] 800[0x2a0003][2752515] NULL[(nil)][0] 20[0x2][2]
I have certain clarifications on the output of the sample program ansidyn2.pc output. When I compile and run the code, I am printing the length of the data returned using REF RETURNED_LENGTH. When I give the output array size as 1 then I am getting proper expected value (ie) example below
[oracle@lang-gang vesubsub]$ ./ansidyn2
username: scott
password: tiger
Connected to ORACLE as user scott.
SQL> select * from emp where empno in (7369,7499);
Enter value for output array size (max is 100) : 1
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7369[0x4][4] SMITH[0x5][5] CLERK[0x5][5] 7902[0x4][4] 17-DEC-80[0x9][9] 800[0x2a0003][2752515] NULL[(nil)][0] 20[0x2][2]
0