diff options
author | mjfernez <mjfernez@gmail.com> | 2020-02-06 19:54:44 -0500 |
---|---|---|
committer | mjfernez <mjfernez@gmail.com> | 2020-02-06 19:54:44 -0500 |
commit | 125ec5bc3d8bfc224b7d32bcfbbc37b9fb5d441f (patch) | |
tree | 5d84977526cff5ca6bd995002fb68a1e1f6c8baf /sumexp.c | |
parent | c1a037eaa8198935dd4bf5f20e8df398f5f0d910 (diff) | |
download | Project_Euler_Solutions-125ec5bc3d8bfc224b7d32bcfbbc37b9fb5d441f.tar.gz |
working on an idea for big ints for sumexp
Diffstat (limited to 'sumexp.c')
-rw-r--r-- | sumexp.c | 21 |
1 files changed, 21 insertions, 0 deletions
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 <stdlib.h> +#include <stdio.h> +#include <string.h> + +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 +} |