Debian Codegraph @

packages/seacas/libraries/plt/chrlen.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 INTEGER FUNCTION CHRLEN(S)
9 CHARACTER*(*) S
10
11 L = LEN(S)
12 J = INDEX(S,CHAR(0))
13 IF (J.EQ.0) THEN
14 I = L
15
16 ELSE
17
18 I = J - 1
19 END IF
20
21 10 CONTINUE
22
23 IF ((I.GT.0.AND.S(I:I).EQ.' ')) THEN
24 I = I - 1
25 GO TO 10
26
27 END IF
28
29 CHRLEN = I
30
31 END