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

Operators

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

   debug0:7> 1+2
   3
   debug0:8> (1+2)*3
   9


NOTE: See Kernighan and Ritchie, The C Programming Language (Englewood Cliffs, NJ: Prentice 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).

Unlike in C, pointer arithmetic is no different than integer arithmetic.

The C pseudo-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).


© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005