Previous: sc2for_array Up: Fortran String Conversion Routines Next: sfor2c_array
sfor2c(c_string, len, for_string, argptr, nargs, argno, strno);
This routine converts Fortran input string to a standard C null-terminated string. It is used to receive string parameters from a Fortran caller.
Arguments:
Buffer to hold the output C string. The string will be truncated if the buffer is not big enough. It will always be null terminated, even if it was truncated. Any trailing blanks in the Fortran string will be removed.
Maximum length of the output C string. This parameter defines the size of the C string buffer. It is expressed in terms of the maximum length of the string, which means it does not include the terminator byte. The buffer should actually be declared to be one byte larger than LEN to allow room for the null terminator. So, if the declaration is ``char buffer[80];'', then LEN should be 79.
See the ``Common Features'' section above.