Guardian Procedure Calls Reference Manual

CURRENTSPACE Procedure (Superseded)
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Returned Value
Related Programming Manual
Summary
NOTE: This procedure cannot be called by native processes. Although this procedure is supported
for TNS processes, it should not be used for new development.
The CURRENTSPACE procedure returns the ENV register (as saved in the stack marker) and a
string (in ASCII) containing the space ID of the caller.
Syntax for C Programmers
#include <cextdecs(CURRENTSPACE)>
short CURRENTSPACE ( [ char *ascii-space-id ] );
Syntax for TAL Programmers
stack-env := CURRENTSPACE [ ( ascii-space-id ) ]; ! o
Parameters
ascii-space-id
output
STRING:ref:5
is an ASCII string in the form:
map.<#>
where
map is one of these:
indicates user code.UC
indicates user library.UL
indicates system code.SC
indicates system library.SL
<#> is the octal space number in ASCII, for example:
UC.01 or SL.33
CURRENTSPACE Procedure (Superseded) 247