I trying to write a function that calls libc functions with variable arguments - for example, scanf. I would like to do this by pushing the arguments onto the stack and then calling the function, something like this. (This code is for an x86 machine.) static long long int scalar_args[512]; static char *ptr_args[512][BUFSIZE];