aboutsummaryrefslogtreecommitdiff
path: root/sys/mwcs/mwgsys.x
diff options
context:
space:
mode:
Diffstat (limited to 'sys/mwcs/mwgsys.x')
-rw-r--r--sys/mwcs/mwgsys.x18
1 files changed, 18 insertions, 0 deletions
diff --git a/sys/mwcs/mwgsys.x b/sys/mwcs/mwgsys.x
new file mode 100644
index 00000000..a1559b8f
--- /dev/null
+++ b/sys/mwcs/mwgsys.x
@@ -0,0 +1,18 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+include "mwcs.h"
+
+# MW_GSYSTEM -- Return the name of the current default world system.
+
+procedure mw_gsystem (mw, outstr, maxch)
+
+pointer mw #I pointer to MWCS descriptor
+char outstr[ARB] #O receives name of world system
+int maxch #I max chars out
+
+pointer wp
+
+begin
+ wp = MI_WCS(mw)
+ call strcpy (S(mw,WCS_SYSTEM(wp)), outstr, maxch)
+end