libzahl

big integer library
git clone git://git.suckless.org/libzahl
Log | Files | Refs | README | LICENSE

zcmpi.3 (405B)


      1 .TH ZCMPI 3 libzahl
      2 .SH NAME
      3 zcmpi - Compare a big integer and a signed integer
      4 .SH SYNOPSIS
      5 .nf
      6 #include <zahl.h>
      7 
      8 int zcmpi(z_t \fIa\fP, int64_t \fIb\fP);
      9 .fi
     10 .SH DESCRIPTION
     11 .B zcmpi
     12 compares
     13 .I a
     14 and
     15 .IR b .
     16 .SH RETURN VALUE
     17 .B zcmpi
     18 returns -1 if
     19 .I a
     20 is less than
     21 .IR b ,
     22 0 if
     23 .I a
     24 is equal to
     25 .IR b ,
     26 and +1 if
     27 .I a
     28 is greater than
     29 .IR b .
     30 .SH SEE ALSO
     31 .BR zcmp (3),
     32 .BR zcmpu (3),
     33 .BR zcmpmag (3)