From: Joey Schulze Date: Mon, 22 Aug 2005 19:37:26 +0000 (+0000) Subject: Patch by Jens Rohler to bigint_cmp() X-Git-Url: https://git.infodrom.org/?p=infodrom%2Fdtaus;a=commitdiff_plain;h=89abc0b9399012aff3dc5456cf17cb5229555149 Patch by Jens Rohler to bigint_cmp() --- diff --git a/bigint.h b/bigint.h index 6a7754c..6399513 100644 --- a/bigint.h +++ b/bigint.h @@ -41,3 +41,11 @@ bigint bigint_int(int num); bigint bigint_string(char *s); void bigint_sprintf (char *res, char *format, bigint a); + +/* compares two bigints + a < b => -1 + a > b => 1 + a == b => 0 +*/ +int bigint_cmp(bigint a, bigint b); +