Variable String Arguments
Ok here is the problem I need to sent to a function a number for example 2. This is the amount of strings I wish to enter into an array of a struct.
The struct for example may have 3 char* like this.
typedef struct
{
char *word[3];
}Example
Now I wanna be able to say 2 and it go into a function that takes that amount of variables(I believe with stdarg).
Example help;
thewordsiwant(&help, 2, "hello", "goodbye");
How would I go about implementing this to make hello and goodbye go into char*word?