I'm using the Intel compiler on Linux.
I'm attempting to pass a Fortran string variable defined as:
to a C function. I've passed character strings from Fortran to C MANY times...with no real issues. However, trying to pass a variable declared as above, proves very difficult. NORMALLY, I can get the length of the strings off the last hidden arguments in the C functions. However, when the variable is defined as above, this hidden arguments are proving very unstable (that is, not accurate AT ALL).
Any ideas?
I'm attempting to pass a Fortran string variable defined as:
Code:
CHARACTER*(*) THIS
to a C function. I've passed character strings from Fortran to C MANY times...with no real issues. However, trying to pass a variable declared as above, proves very difficult. NORMALLY, I can get the length of the strings off the last hidden arguments in the C functions. However, when the variable is defined as above, this hidden arguments are proving very unstable (that is, not accurate AT ALL).
Any ideas?