* 4294967295 is max (unsigned long int)
*/
+#ifndef _BIGINT_H_
+#define _BIGINT_H_
+
#define BIGINT_LEN 2
#define BIGINT_MAX 1000000000
#define BIGINT_PREC 9
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);
+
+#endif /* _BIGINT_H_ */