www.delorie.com/gnu/docs/m4/m4_59.html   search  
 
Buy GNU books!


GNU macro processor

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

11.1 Decrement and increment operators

Increment and decrement of integers are supported using the builtins incr and decr:

 
incr(number)
decr(number)

which expand to the numerical value of number, incremented, or decremented, respectively, by one.

 
incr(4)
=>5
decr(7)
=>6

The builtin macros incr and decr are recognized only when given arguments.


  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003