diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
commit | 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch) | |
tree | 4464880c571602d54f6ae114729bf62a89518057 /pkg/tbtables/fitsio/ftc2l.f | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'pkg/tbtables/fitsio/ftc2l.f')
-rw-r--r-- | pkg/tbtables/fitsio/ftc2l.f | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pkg/tbtables/fitsio/ftc2l.f b/pkg/tbtables/fitsio/ftc2l.f new file mode 100644 index 00000000..8a1e22ef --- /dev/null +++ b/pkg/tbtables/fitsio/ftc2l.f @@ -0,0 +1,26 @@ +C---------------------------------------------------------------------- + subroutine ftc2l(cval,lval,status) + +C convert a character string to a logical value +C perform datatype conversion, if required + + logical lval + integer ival,status + character*(*) cval + character*1 dtype + character sval*16 + double precision dval + + +C convert string to its intrinsic data type + call ftc2x(cval,dtype,ival,lval,sval,dval,status) + if (status .gt. 0)return + + if (dtype .ne. 'L')then +C this is not a logical keyword, so return error + status=404 + sval=cval + call ftpmsg('Error in FTC2L evaluating this string '// + & 'as a logical value: '//sval) + end if + end |