1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#ifndef COMMANDS_H #define COMMANDS_H #include <stddef.h> struct Command { char* name; int (*func)(int, char**); char* description; }; extern const struct Command commands[]; extern const size_t commands_size; #endif