aboutsummaryrefslogtreecommitdiff
path: root/sys/nmemio/sizeof.x
diff options
context:
space:
mode:
Diffstat (limited to 'sys/nmemio/sizeof.x')
-rw-r--r--sys/nmemio/sizeof.x12
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/nmemio/sizeof.x b/sys/nmemio/sizeof.x
new file mode 100644
index 00000000..3b4977fe
--- /dev/null
+++ b/sys/nmemio/sizeof.x
@@ -0,0 +1,12 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+# SIZEOF -- Return the size in chars of one of the fundamental datatypes.
+
+int procedure sizeof (dtype)
+
+int dtype
+include <szdtype.inc>
+
+begin
+ return (ty_size[dtype])
+end