blob: 088f2c077a872388b14bda4538158ba2d8ab9484 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
C--------------------------------------------------------------------------
subroutine ftcrep(comm,comm1,repeat)
C check if the first comment string is to be repeated for all keywords
C (if the last non-blank character is '&', then it is to be repeated)
C comm c input comment string
C OUTPUT PARAMETERS:
C comm1 c output comment string, = COMM minus the last '&' character
C repeat l true if the last character of COMM was the '&" character
C
C written by Wm Pence, HEASARC/GSFC, June 1991
character*(*) comm,comm1
logical repeat
integer i,j
repeat=.false.
j=len(comm)
do 10 i=j,1,-1
if (comm(i:i) .ne. ' ')then
if (comm(i:i) .eq. '&')then
comm1=comm(1:i-1)
repeat=.true.
end if
return
end if
10 continue
end
|