#include "implicit_f.inc"
Go to the source code of this file.
◆ anstckc()
| subroutine anstckc |
( |
integer | len_, |
|
|
character(len=ncharline) | str ) |
Definition at line 27 of file analyse_char.F.
28
29
30
32
33
34
35#include "implicit_f.inc"
36
37
38
39
40
41
42 INTEGER LEN_
43 CHARACTER(LEN=NCHARLINE) :: STR
44
45
46
47 INTEGER I, B, E, LENGTH
48
49
50 length = len_
51 b = 1
52 e = length
53 i = 1
54
55 DO WHILE ((i<=length).AND.(str(i:i) == ' '))
56 i = i+1
57 b = i
58 END DO
59
60 i = 1
61 DO WHILE( (i<length)
62 . .AND.
63 . (str((length-i+1):(length-i+1)) == ' ') )
64 e = length-i
65 i = i+1
66 END DO
67
68 length=e-b+1
69
70 IF (length > 0) THEN
71 DO i=b, e
72 ENDDO
73 END IF
74
integer, parameter ncharline