B: ret = .fname( unit [, string] );
C: char * _fname(FILE *unit, char *string );
This routine returns the file name (if any) associated with an I/O unit. .FNAME is principally used for error messages. If the specified unit is associated with a concatenated list of file names, .FNAME only returns the name of the file that is currently open.
You will probably want to use .FEDIT on the string returned by .FNAME before printing the string out. This removes any passwords which appear in the file name.
The "string" argument is optional in the B version of the function, but must be present in the C version.
Copyright © 1996, Thinkage Ltd.