-typedef int (*command_function_t) (void *ctx, int argc, char *argv[]);
-
-typedef struct command {
- const char *name;
- command_function_t function;
- const char *summary;
- const char *documentation;
-} command_t;
+#define STRNCMP_LITERAL(var, literal) \
+ strncmp ((var), (literal), sizeof (literal) - 1)