Patch by Jens Rohler <jkcr@rohler.de> to bigint_cmp()
authorJoey Schulze <joey@infodrom.org>
Mon, 22 Aug 2005 19:37:26 +0000 (19:37 +0000)
committerJoey Schulze <joey@infodrom.org>
Mon, 22 Aug 2005 19:37:26 +0000 (19:37 +0000)
bigint.h

index 6a7754c..6399513 100644 (file)
--- 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);
+