Guardian Programming Reference Summary for C
Functions Summary (D-F)
Guardian Programming Reference Summary for C—522630-001
5-40
FILENAME_EDIT_
Modifies one or more parts of a file name or file-name pattern, changing them to a
specified value.
level
options
subpart
This parameter applies only to process file names.
#include <cextdecs(FILENAME_EDIT_)>
short FILENAME_EDIT_ ( char *filename /* i */
,short maxlen /* o,i */
,short *filename-length /* i,o */
,const char *piece /* i */
,short length /* i */
,short level /* i */
,[ short options ] /* i */
,[ short subpart ] ); /* i */
-1 = Node name
0 = Destination name (for example, volume, device, or process)
1 = First qualifier (for example, subvolume)
2 = Second qualifier (file identifier if disk file)
Bits 0-13 Reserved (specify 0).
Bit 14 = 1
= 0
Include prefix, that is, the entire portion of filename that precedes
the part specified by level.
Do not include prefix.
Bit 15 = 1
= 0
Include suffix, that is, the entire portion of filename that follows
the part specified by level.
Do not include suffix.
0 = Replace whole destination, that is, all sections occurring before the period (.).
1 = Replace processor, that is, the numeric part designating the processor for an
unnamed process.