view Resources/PostgreSQL/c_flexmember.c @ 171:215782cadfc2 optimized-routes

merge default -> optimized-routes
author Alain Mazy <alain@mazy.be>
date Thu, 12 Nov 2020 10:51:18 +0100
parents 7cea966b6829
children
line wrap: on
line source

#include <stdlib.h>
#include <stdio.h>
#include <stddef.h>
struct s { int n; double d[]; };

int main ()
{
  int m = getchar ();
  struct s *p = malloc (offsetof (struct s, d)
                        + m * sizeof (double));
  p->d[0] = 0.0;
  return p->d != (double *) NULL;
}