diff options
Diffstat (limited to 'pkg/tbtables/fitsio/ftc2ll.f')
-rw-r--r-- | pkg/tbtables/fitsio/ftc2ll.f | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/pkg/tbtables/fitsio/ftc2ll.f b/pkg/tbtables/fitsio/ftc2ll.f new file mode 100644 index 00000000..83bb6d19 --- /dev/null +++ b/pkg/tbtables/fitsio/ftc2ll.f @@ -0,0 +1,18 @@ +C---------------------------------------------------------------------- + subroutine ftc2ll(cval,lval,status) +C convert a character string to a logical value +C (assumes that the input string is left justified) + integer status + logical lval + character*(*) cval + + if (status .gt. 0)return + +C convert character string to logical + if (cval(1:1) .eq.'T')then + lval=.true. + else +C any other character is considered false + lval=.false. + end if + end |