fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. typedef struct
  5. {
  6. int a;
  7. int b;
  8. } s;
  9.  
  10. void *func()
  11. {
  12. return NULL;
  13. }
  14.  
  15.  
  16. int main(void) {
  17. struct s *ptr1 = func();
  18.  
  19.  
  20. free(ptr1);
  21.  
  22. return 0;
  23. }
  24.  
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
Standard output is empty