Scroll to navigation

umult16(3) Library Functions Manual umult16(3)

NAME

umult16 - integer multiplication with overflow checking

SYNTAX

#include <libowfat/safemult.h>

int umult16(uint16 a,uint16 b,uint16* c);

DESCRIPTION

umult16 does c=a*b and returns 1.

In case of an integer overflow, umult16 leaves c alone and returns 0.

SEE ALSO

imult16(3), imult32(3), imult64(3)