aboutsummaryrefslogtreecommitdiffstats
path: root/src/jo_main.c
blob: 7ee0c832116f8c2213ee99f15ae1be8824bd9ced (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/****************************************************************************************/
/*                                                                                      */
/*  File     : jo_main.c                                                  /_________/   */
/*  Author   : Joe                                                              |       */
/*  Date     : 04/2020                                                          |       */
/*  Info     : The main                                                         |       */
/*                                                                      /       |       */
/*                                                                      \       /       */
/*                                                                       \_____/        */
/*                                                                                      */
/****************************************************************************************/

#include <jo_main.h>

/*
** Files prefixes
** --------------
** f: fetch
*/

int
main(void)
{
	int8_t	status;
	int8_t	percent;

	if ((status = jo_f_status()) < 0) {
		return (JO_RET_RD_FAILED);
	}
	if ((percent = jo_f_percent()) < 0) {
		return (JO_RET_RD_FAILED);
	}
	printf("status: %hhd, %hhd%%\n", status, percent);
	return (JO_RET_FINE);
}