aboutsummaryrefslogtreecommitdiffstats
path: root/sumexp.c
diff options
context:
space:
mode:
Diffstat (limited to 'sumexp.c')
-rw-r--r--sumexp.c21
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
+}