1234567891011121314151617181920212223242526272829 |
- #include "include/ttail.h"
-
- ttail_runtime_t* ttail_init(int argc, char **argv)
- {
- ttail_runtime_t *res;
-
- res = malloc(sizeof(ttail_runtime_t));
- if(!res)
- {
- perror("Unable to allocate memory for runtime");
- goto ttail_init_malloc_err;
- }
- res->options = ttail_options_init(argc, argv);
- if(!res->options)
- {
- goto ttail_init_opt_err;
- }
-
-
- ttail_init_opt_err:
- free(res);
- ttail_init_malloc_err:
- return NULL;
- }
-
- int main(int argc, char **argv)
- {
- return 0;
- }
|