assign3
Assign an integer value, check for truncation
Usage
#include <libowfat/rangecheck.h>
int assign(dest,a);
Overview
If a and dest have the same type, or the value of a is representable in the type of dest, do dest=a and return 0.
Otherwise, return 1.
Note: This is a macro, so dest does not have to be a pointer.
Releases
Unchanged in 2 releases since Debian 12 (Bookworm).