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/tunits/tuniterr.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'pkg/utilities/nttools/tunits/tuniterr.x')
-rw-r--r-- | pkg/utilities/nttools/tunits/tuniterr.x | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/pkg/utilities/nttools/tunits/tuniterr.x b/pkg/utilities/nttools/tunits/tuniterr.x new file mode 100644 index 00000000..25a750c5 --- /dev/null +++ b/pkg/utilities/nttools/tunits/tuniterr.x @@ -0,0 +1,24 @@ +#* HISTORY * +#* B.Simon 07-Jan-99 Original + +# TUNITERR -- Print error message for tunits + +procedure tuniterr (errstr, errval) + +char errstr[ARB] # i: error message string +char errval[ARB] # i: value which caused error +#-- +pointer sp, errmsg + +begin + call smark (sp) + call salloc (errmsg, SZ_LINE, TY_CHAR) + + call sprintf (Memc[errmsg], SZ_LINE, "%s (%s)") + call pargstr (errstr) + call pargstr (errval) + + call error (1, Memc[errmsg]) + + call sfree (sp) +end |