I\'m relatively new to the C programming language, and I\'m trying to figure out how to create a function that can accept different types of data as parameters. The function is
It's not really possible, but you can make a tagged union
typedef struct { union { ssize_t i; double d; char *s; } unknown; char select; } Dynamic;
Or you can use a void pointer:
typedef struct { void * unknown; char identity; } Dynamic;