dannybpoulsen / minimc

7 stars 2 forks source link

Issue loading functions with a variable number of arguments #22

Closed MKKlausen closed 1 year ago

MKKlausen commented 1 year ago

The function that showed this behaviour is string formatting using printf. Calling printf with just a string works, however adding another argument to be formatted triggers the error: "Error: Inconsistent number of parameters between call and function prototype"

A small program that triggers this behaviour is the following:

#include <stdio.h>

int main()
{
    int a = 10;
    printf("A is %d", a);
    return 0;
}