Older Newer
Sun, 03 Nov 2019 15:09:51 . . . . SyneRyder [Formatting tweaks for ePub]


Changes by last author:

Added:
= add =

== Syntax ==

int add(int a, int b, int c)

== Arguments ==

:a

::Any integer.

:b

::Any integer.

:c

::Any integer.

== Return ==

The lower integer value of c and (a+b).

== Description ==

This function adds 'a' to 'b', then compares the result with 'c', and returns the lower of the two values. Please note that this function has been retained for compatibility with Filter Factory, and that min(a+b,c) will give the same result and compute faster.

== Example ==

<code>

// sets 'p' to 1, because 3+2=5,

// and 5<1 !

int p = add(3,2,1);

</code>

== Also see ==

sub,min,max