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

Operators

SCODB accepts expressions that involve all C language operators, in proper precedence and evaluation order:[1]

   debug0:7> 1+2
   3
   debug0:8> (1+2)*3
   9
Unlike in C, pointer arithmetic is no different than integer arithmetic.

The C psuedo-function sizeof is available (note that sizeof does not evaluate its argument), and type casts to known types (basic types and those in the stundef file).


Footnotes

[1]
See Kernighan and Ritchie, The C Programming Language (Englewood ZCliffs, NJ: Pretice Hall) for a convenient table of operator precedence and associativity. This is on page 49 of the first edition (1978) or page 53 of the second edition (1988).

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