I am trying to build a list of strings that I need to pass to a function expecting char **
char **
How do I build this array? I want to pass in two options, each wi
C strings are enclosed in double quotes:
const char *options[2][100]; options[0][0] = "test1"; options[1][0] = "test2";
Re-reading your question and comments though I'm guessing that what you really want to do is this:
const char *options[2] = { "test1", "test2" };