#pragma once struct cmd { const char *key; void (* exec)(const char *s); }; void cmd_loop(const char *s);