R
Roman Mashak
Hello, All!
I have a structure:
typedef struct cmd_line_s {
char *cl_action;
char *cl_args[10];
unsigned char cl_args_num;
void *cl_handler;
} cmd_line_t;
At initialization time I'm dooing cmd_line_t cli = { NULL, NULL, 0, NULL };
After dealing with 'cli' I'd like to reset fields values to { NULL, NULL, 0,
NULL } state again, what is the most correct and easy way?
Thank you!
With best regards, Roman Mashak. E-mail: (e-mail address removed)
I have a structure:
typedef struct cmd_line_s {
char *cl_action;
char *cl_args[10];
unsigned char cl_args_num;
void *cl_handler;
} cmd_line_t;
At initialization time I'm dooing cmd_line_t cli = { NULL, NULL, 0, NULL };
After dealing with 'cli' I'd like to reset fields values to { NULL, NULL, 0,
NULL } state again, what is the most correct and easy way?
Thank you!
With best regards, Roman Mashak. E-mail: (e-mail address removed)