I have two strings in flash memory in an embedded micro like so:
#define HELP_STRING \
"\r\nhelp:\r\n Lists all the registered commands\r\n\Software Version r\n"
#define VERSION " 0.3.2"
I would like to have this:
static const CLI_Command_Definition_t xHelpCommand =
{
"help",
FULL_HELP_STRING,
prvHelpCommand,
0
};
where FULL_HELP_STRING is the equivalent of this:
#define FULL_HELP_STRING (HELP_STRING + VERSION)
How would achieve this please? Thanks!