infix
A JIT-Powered FFI Library for C
Loading...
Searching...
No Matches
Ch04_VariadicPrintf.c File Reference

Cookbook Chapter 4: Calling Variadic Functions like printf. More...

#include <infix/infix.h>
#include <stdio.h>
Include dependency graph for Ch04_VariadicPrintf.c:

Functions

int main ()

Detailed Description

Cookbook Chapter 4: Calling Variadic Functions like printf.

This example demonstrates how to call a C function that takes a variable number of arguments, such as printf.

The key is the semicolon (;) in the signature string, which separates the fixed arguments from the variadic arguments. The signature must exactly match the types you are passing in a specific call. You would need a different trampoline for printf("s", ...) versus printf("d", ...).

Function Documentation

◆ main()

int main ( void )