*sumBigInt implementation
[biginteger-lo27.git] / test.c
blobb0cbfbb1cda689cc979b26e728823405246767ea
1 #include <stdio.h>
2 #include <stdlib.h>
4 #include "biginteger.h"
6 int main(int argc, char* argv[])
8 if (argc < 2) {
9 puts("Bad arguments");
10 return EXIT_FAILURE;
13 BigInteger b = newBigInteger(argv[1]);
14 BigInteger b2 = newBigInteger(argv[2]);
16 /*printBigInteger(b);
18 printf("Comparing to itself : %d\n", compareBigInt(b, b));
20 printf("Comparing to second : %d\n", compareBigInt(b, b2));
22 printf("Adding the two together : ");
23 printBigInteger(sumBigInt(b, b2));*/
24 printf("Diff the two :");
25 printBigInteger(diffBigInt(b, b2));
27 return EXIT_SUCCESS;