#pragma once #include #include /** Print a horizontal separator line */ void print_line(void); /** Pause until the user presses ENTER */ void wait_for_enter(const char* prompt); /** Ask a yes/no question and return boolean */ bool ask_yes_no(const char* prompt); /** * Get the current timestamp for recording when a question was answered * * @param answer_time_buffer Buffer to store the formatted timestamp * @param buffer_capacity Size of the buffer in bytes */ void get_answer_timestamp(char* answer_time_buffer, size_t buffer_capacity); /** * Get a random question index in the quiz (thread-safe) * * @param seed Pointer to an unsigned int seed (per-thread) * @param total_questions Number of questions in the current quiz session * @return Random index in the range [0, total_questions-1] */ size_t get_random_question_index(unsigned int* seed, size_t total_questions);