fork(1) download
  1. #include <stdio.h>
  2.  
  3. void myfunction(const char** in);
  4.  
  5. int main()
  6. {
  7. const char *result = NULL;
  8. myfunction(&result);
  9. printf("%p : %s\n", result, result);
  10. return 0;
  11. }
  12.  
  13. void myfunction(const char** in)
  14. {
  15. const char* test = "mytest";
  16. printf("%p : %s\n", test, test);
  17. *in = test;
  18. }
Success #stdin #stdout 0s 2292KB
stdin
Standard input is empty
stdout
0x8048580 : mytest
0x8048580 : mytest