uint32_t ask_user_command()

in main.c [11:25]


uint32_t ask_user_command()
{
    uint32_t command_id = 0;

    printf("\n*** PIPEDANCE Command Menu ***\n\n");

    for (size_t i = 0; i < cl_get_command_list_length(); i++)
    {
        printf("\t%d: %s\n", COMMAND_LIST[i].id, COMMAND_LIST[i].description);
    }

    h_get_user_dword("\nPlease enter in command ID : ", &command_id);

    return command_id;
}