Thanks Johannes,
I don't believe this function changes the value. It is the norm in the gphoto functions to accept a pointer as an argument for some reason.
That being said, its not working the way I imagine, so something strange could be happening in the gphoto function.
So I've taken your advice.
Things are now working on that front, having to typecast the strcpy from s_name seemed a bit weird:
strcpy(charkey,(char *)textValue->s_name);
without the cast the value never gets set.
Say Johannes, had a chance to consider my thread on pthreads?
Thanks, B.
never ever change the value of a symbol. they are constants. you will get crashes and everything.
if you have a function that wants to change strings, you have to use stings and not symbols. (convert a symbol to a char[]; modify it; call gensym() on the new string)
fgamdsr IOhannes
On Thu, 26 Mar 2009, B. Bogart wrote:
strcpy(charkey,(char *)textValue->s_name); without the cast the value never gets set.
I don't believe this. There has to be something else you did, but this just can't be it. s_name is already a char *, and then, if it had the wrong type, it'd only do a type error. In C you can't overload function names, so there can only be one strcpy and one behaviour for it.
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard - tél:+1.514.383.3801, Montréal, Québec