[LC++] filling char* arrays
Julien Claassen
julien at c-lab.de
Fri Jun 20 07:05:59 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[2];
buttons[0] = strdup("Yes");
Or what should I do? I have to fill the array depending on an if-statement.
Thanks in advance for any good, practical tip.
Kindest regards
Julien
--------
Music was my first love and it will be my last (John Miles)
======== FIND MY WEB-PROJECT AT: ========
http://ltsb.sourceforge.net
the Linux TextBased Studio guide
======= AND MY PERSONAL PAGES AT: =======
http://www.juliencoder.de
More information about the tuxCPProgramming
mailing list