Advertisement
Guest User

Untitled

a guest
Dec 17th, 2014
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.34 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. void fonc(char * result) {
  5.   char* temp = (char*) calloc(512,sizeof(char)); // Define buffer for query
  6.   temp[0]='A';
  7.   result = temp;
  8.   printf("%s %x\n", result, &result);
  9.   printf("%s %x\n", temp, &temp);
  10. }
  11.  
  12. void main() {
  13.   char * toto;
  14.   fonc(toto);
  15.   printf("%s %x\n", toto, &toto);
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement