From 125ec5bc3d8bfc224b7d32bcfbbc37b9fb5d441f Mon Sep 17 00:00:00 2001 From: mjfernez Date: Thu, 6 Feb 2020 19:54:44 -0500 Subject: working on an idea for big ints for sumexp --- sumexp.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 sumexp.c diff --git a/sumexp.c b/sumexp.c new file mode 100644 index 0000000..f050773 --- /dev/null +++ b/sumexp.c @@ -0,0 +1,21 @@ +#include +#include +#include + +typedef struct bigint bigint; + +struct bigint{ + char digit; + bigint *nextdigit; +}; + +// struct methods +int length(); + +// struct globals +bigint *end = NULL; +bigint *current = { .digit = '0', .nextdigit = end}; + +int length(bigint num){ + num->digits +} -- cgit v1.2.3