Guest User

Untitled

a guest
Oct 16th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4.  
  5. char *chuj;
  6.  
  7. int test(char** str);
  8.  
  9. int main(int argc, char** argv) {
  10. test(&chuj);
  11. printf("%s\n", chuj);
  12. free(chuj);
  13. }
  14.  
  15. int test(char** str) {
  16. *str = malloc(64);
  17. sprintf(*str, "jakischuj");
  18. }
Add Comment
Please, Sign In to add comment