void h_get_user_dword()

in helpers.c [34:52]


void h_get_user_dword(const char* message, uint32_t* input)
{
    assert(message);
    assert(input);

    while (true)
    {
        printf(message);

        if (!scanf_s("%d", input))
        {
            printf("Failed to read dword, try again.\n");

            while (getchar() != '\n');
        }
        else
            break;
    }
}