Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Passing array of strings in/out of extern C

223563Feb 11 2005 — edited Feb 24 2005
Hi:

(I hope this is the right conference for this question)

I'm trying to pass an array of strings in/out of an external C program. I was successful in passing simple data types (BINARY_INTEGER, NUMBER, VARCH) but hit a wall when trying to get this to work with an array of strings.

Should I be passing...
"table of varchar2()" ?
"varray of varchar2()" ?
"varray of char()" ?
other ?

What should I expect to see on the 'C' end? How should I declare the argument? As a (char *)? Is the array of strings in some sort of descriptor? Is there any documentatiopn on the descriptor?

I'm sort of lost on this one. If there's a simple example on how to do this, that'd be great.

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 24 2005
Added on Feb 11 2005
7 comments
813 views