Previous: sfor2c_array Up: Fortran String Conversion Routines Next: sfor2ptr
length = sfor2len(for_string, argptr, nargs, argno, strno);
This routine returns the length of a Fortran string. It does not get a pointer to the characters, nor does it convert them to a C string. It is most useful to get the length of a string in order to allocate a buffer for it before calling sfor2c. Note that the length returned is the ``n'' in the CHARACTER*n declaration, not the number of characters currently in the string.
Arguments:
See the ``Common Features'' section above.