DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Using SCODB on SCO OpenServer 5

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: 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).

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