#include "sandbox.h" #include "utils.h" #include #include #include int main(int argc, char* argv[]) { return 0; } Command* find_command(const char* name) { Command* match = NULL; // Find all matching commands (starting with the given name) size_t length = strlen(name); for (size_t i = 0; i < sizeof(COMMANDS) / sizeof(COMMANDS[0]); i++) if (strncmp(name, COMMANDS[i].name, length) == 0) { // Check for multiple matches if (match != NULL) return NULL; match = &COMMANDS[i]; } return match; }