2022-01-30 23:04:56 +03:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdint.h>
|
2022-01-31 14:40:06 +03:00
|
|
|
#include <string.h>
|
|
|
|
#include "args.h"
|
2022-01-30 23:04:56 +03:00
|
|
|
|
|
|
|
int main(int argc, char **argv)
|
|
|
|
{
|
2022-01-31 14:40:06 +03:00
|
|
|
asc_args_t args;
|
|
|
|
int res = parse_args(argc, argv, &args);
|
|
|
|
if (res == 1) return 0;
|
|
|
|
if (res < 0) return -res;
|
|
|
|
|
|
|
|
asc_state_t state;
|
|
|
|
res = prepare_state(argc, argv, args, &state);
|
|
|
|
if (res == 1) return 0;
|
|
|
|
if (res < 0) return -res;
|
|
|
|
|
2022-01-30 23:04:56 +03:00
|
|
|
return 0;
|
|
|
|
}
|