Graphviz 13.0.0~dev.20241220.2304
|
arithmetic overflow helpers More...
#include <assert.h>
#include <limits.h>
#include <stdbool.h>
#include <stddef.h>
Go to the source code of this file.
Functions | |
static bool | sadd_overflow (int a, int b, int *res) |
Replace this with stdckdint.h when moving to C23.
Definition in file overflow.h.
|
inlinestatic |
add two integers, checking for overflow
a | Operand 1 |
b | Operand 2 |
res | [out] Result on success |
Definition at line 21 of file overflow.h.
References NULL.
Referenced by x_cutval().