/* * Clears the log file. */ void clear_log() { char temp_path[MAX_PATH]; /* Buffer to contain path to windows temporary file directory. */ GetTempPath(MAX_PATH, temp_path); GetTempFileName(temp_path, "tmp", 0, log_file_name); log_file = fopen(log_file_name, "w"); }