[LC++] filling char* arrays
Joaquim Duran Comas
jdurancomas at gmail.com
Mon Jun 23 08:26:25 EST 2008
> Hello everone!
> Thyis is not strictly c++, although it is embedded in c++ code.
> I want to dynamically fill a char pointer array, how best to go about it?
> The array is one or two elements long, should I just go for:
> char* buttons;
> buttons = strdup("Yes");
> Or what should I do? I have to fill the array depending on an if
> Thanks in advance for any good, practical tip.
> Kindest regards
More information about the tuxCPProgramming