BitLab 0.1.0
BitLab: A Browser for the Bitcoin P2P Network and Blockchain
Loading...
Searching...
No Matches
main.c
Go to the documentation of this file.
1#include <stdio.h>
2#include <stdlib.h>
3
4#include "bitlab.h"
5
6int main(int argc, char* argv[])
7{
8 setbuf(stdout, NULL);
9 int result = run_bitlab(argc, argv);
10 if (result != BITLAB_RESULT_SUCCESS)
11 {
12 fprintf(stderr, "BitLab failed to run with error code: %d\n", result);
13 return EXIT_FAILURE;
14 }
15 return EXIT_SUCCESS;
16}
bitlab_result run_bitlab(int argc, char *argv[])
Run the BitLab program.
Definition bitlab.c:13
@ BITLAB_RESULT_SUCCESS
Definition bitlab.h:6
int main(int argc, char *argv[])
Definition main.c:6