Manual
Chapter 5
Startup, Status, and Shutdown
5-9
xlat_opst
This function translates the operating status bits in g_op_stat to English.
Calling sequence:
explan = xlat_opst( );
Arguments:
None, since the operating status is a global variable.
Returned values:
a character pointer whose object is a string suitable for printing. The
string length does not exceed 80 characters (79 plus the terminating zero
byte).
Note that xlat_opst has an internal string buffer and returns a pointer to
that buffer. Calling xlat_opst destroys the previous contents of the buffer.
This means that you must use the string returned by this routine before you
call the routine again.
Here’s a typical use of this routine:
printf(“status: %s\n”, xlat_opst( ));