Alternate Entry Name: AFT_NA
B: ret = aft.name( unit [, vector] );
C: int *aft_name(FILE *unit, int *vector);
In TSS, AFT.NAME is used to get the aftname associated with an open unit. In batch, AFT.NAME gets the filecode (and tape label). If the given unit is not currently open or if it is associated with a terminal, "ret" will be zero and the contents of "vector" will be undefined. If the unit is open and is not a terminal, "ret" will point to the aftname/filecode. If "vector" is omitted, "ret" will point into the IOV; otherwise, "ret" is set as a pointer to "vector[0]".
Even though "vector" points to two words containing the aftname in ASCII characters (in TSS), "vector" is not a B string since it has no trailing '*e'. This is because "vector" is principally used for system calls (DRL's and MME's).
Copyright © 1996, Thinkage Ltd.