BitLab 0.1.0
BitLab: A Browser for the Bitcoin P2P Network and Blockchain
Loading...
Searching...
No Matches
main.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include "bitlab.h"

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 6 of file main.c.

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

References BITLAB_RESULT_SUCCESS, and run_bitlab().