Re: [Plib-users] Plib beginner questions
Brought to you by:
sjbaker
From: Jan R. <slo...@gm...> - 2007-02-14 19:22:35
|
Am Tue, 13 Feb 2007 19:55:40 -0300 schrieb "Eduardo Alberto Hern=E1ndez Mu= =F1oz" <coz...@gm...>: > Maybe somehow the array you supplied was erased. I would check the > plib examples, compare the code to them and do things the same way it > is done there. Yes, I already made this mistake several times. Always double-check that - the last character string in your array is a pointer to NULL and - the array is still around when you leave the creating function Try to use a global array like this: char *names[] =3D {"Wilma", "Fred", "Barney", NULL}; and see if your code works if you pass "names" to the puList. Or maybe simply post us a snippet of your code, that might help with finding the source of the error. Kind regards, Jan R. --=20 Jan Reucker email: jan dot reucker at web dot de web: http://www.reucker-online.de |