aboutsummaryrefslogtreecommitdiffstats
path: root/sumexp.c
blob: f050773556136277bb01878642b222e73b6935e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
}