File: imult32.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 imult32 3
.SH NAME
imult32 \- integer multiplication with overflow checking
.SH SYNTAX
.B #include <libowfat/safemult.h>

int \fBimult32\fP(int32 a,int32 b,int32* c);
.SH DESCRIPTION
imult32 does c=a*b and returns 1.

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