IS_ADD_SAFE 3CW "21 March 2008" "mathcw-1.00"
Table of contents
is_add_safe, is_add_safel, is_add_safell - test for safe integer addition
cc [ flags ] -I/usr/local/include file(s) -L/usr/local/lib -lmcw [ ... ]
#include <mathcw.h>
extern int is_add_safe (int a, int b);
extern int is_add_safel (long int a, long int b);
extern int is_add_safell (long long int a, long long int b);
Determine whether the integer arguments can be added safely without
overflow.
Return 1 if the operation is safe, and 0 otherwise.
None.
is_abs_safe(3CW),
is_div_safe(3CW),
is_mul_safe(3CW),
is_neg_safe(3CW),
is_rem_safe(3CW),
is_sub_safe(3CW).