blob: 87e45b64f355eb700e7ec154843609520787dad0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include<stdlib.h>
#include<adder.h>
int main(int argc, char **argv) {
adder *a = adder_create(3);
int result = adder_add(a, 4);
if(result != 7) {
return 1;
}
adder_destroy(a);
return 0;
}
|