This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Pam.McANulty
Recipients Albert.Zeyer, Mason.Bially, Pam.McANulty, amaury.forgeotdarc, gholling, theller
Date 2017-11-22.13:42:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In the example code, the 'result' variable is declared on the stack in the callback() function.  So it will be effectively when callback() returns.

Also the "result" variable in main() is never referenced.  A pointer main()'s "result" variable should be passed to callback() as an argument ("&result") and `callback(struct helloStruct *result)` should populate it (via `result->i = 10;` etc)

```struct helloStruct callback () {
  struct helloStruct result;
  result.i = 10;
  result.f = 3.14159;
  return result;
Date User Action Args
2017-11-22 13:42:21Pam.McANultysetrecipients: + Pam.McANulty, theller, amaury.forgeotdarc, gholling, Albert.Zeyer, Mason.Bially
2017-11-22 13:42:20Pam.McANultysetmessageid: <>
2017-11-22 13:42:20Pam.McANultylinkissue5710 messages
2017-11-22 13:42:20Pam.McANultycreate