Debian Codegraph @

packages/seacas/libraries/suplib/shocmd.f

raw
1 C Copyright(C) 1999-2020 National Technology & Engineering Solutions
2 C of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
3 C NTESS, the U.S. Government retains certain rights in this software.
4 C
5 C See packages/seacas/LICENSE for details
6
7 C=======================================================================
8 SUBROUTINE SHOCMD (HEADER, LIST)
9 C=======================================================================
10
11 C --*** SHOCMD *** (ETCLIB) Display list of strings
12 C -- Written by Amy Gilkey - revised 10/27/86
13 C --
14 C --SHOCMD displays the list of strings. The heading for the list is
15 C --dependent on HEADER:
16 C -- COMMANDS - "Valid Commands"
17 C -- null - no heading
18 C -- other - HEADER
19 C --
20 C --Parameters:
21 C -- HEADER - IN - the show option (see above)
22 C -- LIST - IN - the string list, last entry must be ' '
23
24 C --Routines Called:
25 C -- LOCSTR - (STRLIB) Find string
26
27 CHARACTER*(*) HEADER
28 CHARACTER*(*) LIST(*)
29
30 IF (HEADER .EQ. 'COMMANDS') THEN
31 WRITE (*, 10) 'Valid Commands:'
32 ELSE IF (HEADER .NE. ' ') THEN
33 WRITE (*, 10) HEADER
34 END IF
35
36 NCMD = LOCSTR (' ', 999, LIST) - 1
37 WRITE (*, 20) (LIST(I), I=1,NCMD)
38
39 RETURN
40 10 FORMAT (/, 1X, 5A)
41 20 FORMAT ((4X, 7(A8, :, 2X)))
42 END