diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-16 18:44:48 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-16 18:44:48 +0200 |
commit | 7e831a1495736e3997502de43962d617b7218179 (patch) | |
tree | b61da68e5e24f54523fecf68be0cce789a3c2a8c /src/jo_main.c | |
parent | Create LICENSE (diff) | |
download | lowbat-bsd-7e831a1495736e3997502de43962d617b7218179.tar.gz lowbat-bsd-7e831a1495736e3997502de43962d617b7218179.tar.bz2 lowbat-bsd-7e831a1495736e3997502de43962d617b7218179.tar.xz lowbat-bsd-7e831a1495736e3997502de43962d617b7218179.tar.zst lowbat-bsd-7e831a1495736e3997502de43962d617b7218179.zip |
Read function is good
Diffstat (limited to 'src/jo_main.c')
-rw-r--r-- | src/jo_main.c | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/src/jo_main.c b/src/jo_main.c index ee3c400..2d19ab8 100644 --- a/src/jo_main.c +++ b/src/jo_main.c @@ -1,8 +1,33 @@ +/****************************************************************************************/ +/* */ +/* File : jo_main.c /_________/ */ +/* Author : Joe | */ +/* Date : 04/2020 | */ +/* Info : The main | */ +/* / | */ +/* \ / */ +/* \_____/ */ +/* */ +/****************************************************************************************/ + #include <jo_main.h> +/* +** Files prefixes +** -------------- +** f: fetch +*/ + int main(void) { - jo_printf(); - return (0); + char *status; + + if (!(status = jo_f_status())) { + return (JO_RET_RD_FAILED); + } + printf("status: %s\n", status); + free(status); + status = NULL; + return (JO_RET_FINE); } |