Variable number of char arrays to function

I want to do something like this

Display_menu("Item1", "Item2" ..... "Item n") where n could be any reasonable number.

Display_menu needs to place each item in a menu on an LCD which I can scroll up and down. General advice seems to be to use a vector of pointers to char arrays, but I'm struggling to create such a vector of char arrays in Display_menu that works, instead getting numerous obscure error messages.

Rather than me posting all the code I've tried that doesn't work, has somebody got an example of their code that works something like this that I can work from ?

Thanks in advance

Search for "Variadic Function"

gfvalvo:
Search for "Variadic Function"

I have done - that is what told me to use a vector of pointers to char arrays, but all the examples are just of integers

Display_menu("Item1", "Item2" ..... "Item n") where n could be any reasonable number.

Why not put all the strings in an array, and pass the array, and length, to the function. No need to get fancy, when you don't absolutely have to.

Yea, thinking about, creating a Variadic Function is unnecessarily complex. You can gain some efficiency by passing an array of char pointers. That way all the strings don't have to be the same length.