|
I think options(*string) takes care of that for you when you pass a character string. IIRC, it creates a temp variable that's null terminated and passes a pointer to that. > -----Original Message----- > From: Joe Pluta [mailto:joepluta@PlutaBrothers.com] > Sent: Friday, April 05, 2002 9:45 AM > To: midrange-l@midrange.com > Subject: RE: qzshsystem api > > > > From: Joel Fritz > > > > Does anyone have any experience with QzshSystem()? I was > playing around > > with it yesterday and it worked but it didn't. Using the > > prototype below, I > > passed in a command string, the call executed successfully--well, it > > returned 7--and nothing happend. I tried sending a > directory listing to a > > file and calling a program that created a small text file. > > > > Dqzhsystem pr 10i 0 extproc('QzshSystem') > > D cmdstring * value options(*string) > > I haven't tried it, but I know Unix commands like nulls at > the end. Did you > make sure to append a null (x'00') at the end of your command string? > > Joe > > > _______________________________________________ > This is the Midrange Systems Technical Discussion > (MIDRANGE-L) mailing list > To post a message email: MIDRANGE-L@midrange.com > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l > or email: MIDRANGE-L-request@midrange.com > Before posting, please take a moment to review the archives > at http://archive.midrange.com/midrange-l. >
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.