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/utilities/nttools/tcopy/iswholetab.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'pkg/utilities/nttools/tcopy/iswholetab.x')
-rw-r--r-- | pkg/utilities/nttools/tcopy/iswholetab.x | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/pkg/utilities/nttools/tcopy/iswholetab.x b/pkg/utilities/nttools/tcopy/iswholetab.x new file mode 100644 index 00000000..a2a981ed --- /dev/null +++ b/pkg/utilities/nttools/tcopy/iswholetab.x @@ -0,0 +1,24 @@ +# IS_WHOLETAB -- Return true if table name has no extension + +bool procedure is_wholetab (table) + +char table[ARB] # i: table name +#-- +bool wholetab +int nc, hdu +pointer sp, fname, extname + +int tbparse() + +begin + call smark (sp) + call salloc (fname, SZ_FNAME, TY_CHAR) + call salloc (extname, SZ_FNAME, TY_CHAR) + + nc = tbparse (table, Memc[fname], Memc[extname], SZ_FNAME, hdu) + + wholetab = Memc[extname] == EOS + + call sfree (sp) + return (wholetab) +end |