In <[email protected]> Rolf
<[email protected]> writes:
> uint32_t myfunction (char ** _mydata)
> {
> char mydata[16];
> strcpy(mydata, "Hello Dude!");
> *_mydata = mydata;
> return 0;
> }
mydata is an auto variable, which goes out of scope when myfunction()
exits. *_mydata ends up pointing to garbage.
--
John Gordon A is for Amy, who fell down the stairs
[email protected] B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"
--
http://mail.python.org/mailman/listinfo/python-list