I have two functions, both taking variadic arguments. One function should call the other, with said arguments. The functions look like this:
void make_error(const char *line, unsigned int line_no, unsigned int char_no,
unsigned int len, const char *error_message, ...)
va_list l;
va_start(l, error_message);
message_internal("\033[31;1m", line, "error", line_no, char_no, len, error_message, l);
va_end(l);
}
void throw(SubstringInformation* info, const char* format, ...) {
va_list l;
va_start(l, format);
// this does not work, but doesn't produce an error or warning
make_error(info->line_content, info->line_in_file, info->char_in_line,
info->text_len, format, l);
va_end(l);
}