I am trying to initalize a structure using braces, but i am really trying to initalize the structure that is pointed to by a pointer returned from a malloc call.
typedef struct foo{
    int x;
    int y;
} foo;
foo bar = {5,6};
I understand how to do that, but i need to do it in this context.
foo * bar = malloc(sizeof(foo));
*bar = {3,4};
 
     
     
    