aboutsummaryrefslogtreecommitdiff
path: root/sys/symtab/strefsbuf.x
diff options
context:
space:
mode:
Diffstat (limited to 'sys/symtab/strefsbuf.x')
-rw-r--r--sys/symtab/strefsbuf.x14
1 files changed, 14 insertions, 0 deletions
diff --git a/sys/symtab/strefsbuf.x b/sys/symtab/strefsbuf.x
new file mode 100644
index 00000000..d0be6437
--- /dev/null
+++ b/sys/symtab/strefsbuf.x
@@ -0,0 +1,14 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+include "symtab.h"
+
+# STREFSBUF -- Convert an offset into SBUF into a pointer to char.
+
+pointer procedure strefsbuf (stp, offset)
+
+pointer stp # symtab descriptor
+int offset # offset into SBUF
+
+begin
+ return (ST_SBUFP(stp) + offset)
+end