Advertisement
Guest User

Untitled

a guest
Apr 10th, 2019
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.12 KB | None | 0 0
  1. void fn(My_struct **o) {
  2. if (!*o)
  3. o = (My_struct*)malloc(sizeof(My_struct));
  4. }
  5.  
  6. My_struct *o;
  7. o = NULL;
  8. fn(&o);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement