DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Using SCODB on SVR5

Output modification

By default, output values are in hexadecimal, and four bytes worth of value (a long) is printed out.

If an expression is of type char, unsigned char, short, or unsigned short, the appropriate amount of information is printed.

To modify output, a calculator input line is preceded by an open-curly-bracket ({), which is followed by a list of specifiers and ended with a close-curly-bracket (}). Strings may also be given to output before or after the value is given; normal character escapes as accepted by echo are allowed. The specifiers are:

? list Output modifiers
> no value output
b output value as a byte
s output value as a short
2 output value in binary
o output value in octal
d output value in decimal
: output string
For instance, to preface output with the string Value and to have the string ok output after the value, with the value in decimal:

   debug0:24> {d:Value:ok}value
   Value 10 ok
Note that expressions of type void have an output length of zero (no value is given).
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005