|
(previously posted in midrange-l with very little response)(I
Working on a proof of concept project to port a aix implementation of C
am told it is C, not C++ but wouldn't know the diff if it hit me in themessages
face..)
Large multi platform company, we are the only Power i in the mix of AIX
and MS-SQL and .net.
The C code is an encryption package where we can all pass data back and
forth (and we do a lot of that) but handle the encryption of sensitive
info. They have written C wrappers around a package of C from HP called
Voltage.
We have the source for the wrappers, but compiling the C on "i" not
working. We have solved the includes issues, but getting down to
like line 47 :..............a.............................................
39 1 | int status = 0;
|
40 | char *newformat[30];
|
41 |
|
42 2 | if (SQLUDF_NULL(text_ind) || SQLUDF_NULL(format_ind))
{ |
43 3 | *out_ind = -1;
|
44 4 | return;
|
45 | }
|
46 |
|
47 5 | strcpy( newformat, (char *) format)
; |
47 5 + (__strcpy((newformat),((char *) format)))
; +
===========>
.....................................................a............................................
*=SEVERE==========> a - CZM0280 Function argument assignment between
types "char*" and "char**" is not allowed.
48 6 | if (strcmp( (char *) format, "ShortDate" ) == 0 )
{ |
49 7 | int result = 0;
|
50 8 | result = GetYear(text);
|
===========>
......................................like
*=WARNING=========> a - CZM0304 No function prototype given for
"GetYear".
IS there a conversion of source needed to ILE C?
Is line 40 char *newformat[30]; correct - I can't find anything
that in google...
Thanks
Jim Franz
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.