News for hackers. Stuff that matters.
Re:Once upon a time, memory allocators made sense by ratboy666 on Monday January 18, 2016 @03:20PM (#10926634)
How about

  #include <stdio.h>

  typedef struct mystruct {
    int x;
    char *p;
  } mystruct;

  mystruct func(int n) {
    return (mystruct) { n, NULL };
  }

  int main(void) {
    mystruct v = func(1);
    printf("%d\n", v.x);
    printf("%d\n", func(2).x);
    return 0;
  }
Works fine with gcc 5.3.1. Multiple destructuring is (maybe) problematic, but if you really want this.
Re:Once upon a time, memory allocators made sense by scott_s on Monday January 18, 2016 @03:40PM (#10926756)
That has both downsides I mentioned.