You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
354 B
C

#include "app_args.h"
#include <stdlib.h>
#include <string.h>
struct app_args* app_args_new( int argc, char** argv )
{
struct app_args* args = (struct app_args*)malloc( sizeof(struct app_args) );
args->port = 9053;
args->addr = strdup("0.0.0.0");
return args;
}
void app_args_release( struct app_args* args )
{
free(args->addr);
free(args);
}