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

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 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(C) are allowed. The specifiers are:

? list Output modifiers
> no value output
b output value as a byte
s output value as a word
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).

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003