5 * Revision 1.1.1.1 1996/03/06 10:47:26 mclareni
9 #include "zebra/pilot.h"
10 SUBROUTINE RZRDIR(MAXDIR,CHDIR,NDIR)
12 ************************************************************************
14 * Returns the list of subdirectories of the CWD
16 * MAXDIR Length of the character array CHDIR
18 * CHDIR* Character array which will contain the directory names
19 * attached to the CWD. If the length of the directory name is
20 * greater then the length of one element of CHDIR (as obtained
21 * by the LEN function), only as many characters as will fit in
22 * the array element are returned, and an error code will be set
24 * NDIR* Actual number of subdirectories attached to the CWD
25 * If this number is greater than MAXDIR, only the first MAXDIR
26 * directory names will be returned in CHDIR (see IQUEST(12))
30 * Author : R.Brun DD/US/PD
34 ************************************************************************
35 #include "zebra/rzcl.inc"
36 #include "zebra/rzk.inc"
38 CHARACTER*(*) CHDIR(*)
40 *-----------------------------------------------------------------------
44 IF(LQRS.EQ.0) GO TO 99
45 IF(LCDIR.EQ.0)GO TO 99
48 LS = IQ(KQSP+LCDIR+KLS)
49 NSDIR = IQ(KQSP+LCDIR+KNSD)
50 IF(NSDIR.LE.MAXDIR)THEN
59 CALL ZITOH(IQ(KQSP+LCDIR+LS+7*(I-1)),IHDIR,4)
60 CALL UHTOC(IHDIR,4,CHDIR(I),NCH)