File: imult16.3

package info (click to toggle)
libowfat 0.34-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,288 kB
  • sloc: ansic: 20,181; makefile: 16
file content (14 lines) | stat: -rw-r--r-- 348 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
.TH imult16 3
.SH NAME
imult16 \- integer multiplication with overflow checking
.SH SYNTAX
.B #include <libowfat/safemult.h>

int \fBimult16\fP(int16 a,int16 b,int16* c);
.SH DESCRIPTION
imult16 does c=a*b and returns 1.

In case of an integer overflow, imult16 leaves \fIc\fR alone and returns
0.
.SH "SEE ALSO"
umult16(3), imult32(3), imult64(3)