Simple integer calculator.






Misc >
Help >
FAQ >


Links >



Simple integer calculator.

This program is a simple calculator which has a stack of integer values. It defines commands to:
  • Push integer values on the stack. These values are either in decimal or hexadecimal (0x prefix)
  • Do simple operations on top most values on the stack. Operands are popped from the stack and the result is pushed back.
  • Select the format of the output result and list the content of the stack.
Source file: calc.c

Copyright (C) 1999, 2000, 2001, 2002, 2003 Stéphane Carrez, France
Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.


AltStyle によって変換されたページ (->オリジナル) /