COSMOS v7.655
COSMOSv7655
(AirShowerMC)
ksupblank.f
Go to the documentation of this file.
1
! character*120 text
2
! text = ' *** ls 000 0 12 23 s () ( ) |'
3
! call ksupblank(text, nc)
4
! write(*,*) nc
5
! write(*,*) text(1:nc)
6
! end
7
8
9
subroutine
ksupblank
(text, nc)
10
implicit none
11
character*(*)
text
! in/out. string
12
integer
nc
! output. resultant string length
13
!
14
! supress two or more blanks into one blank
15
!
16
integer
i, klena, tl
17
18
i = 1
19
do
while
(i .ne. 0)
20
tl = klena(text)
21
i = index(text(1:tl),
" "
)
22
if
(i .gt. 0)
then
23
text(i+1:tl) = text(i+2:tl)
24
endif
25
enddo
26
nc = tl
27
end
ksupblank
subroutine ksupblank(text, nc)
Definition:
ksupblank.f:10
KKlib
ksupblank.f
Generated by
1.8.13