Mercurial > hg > orthanc-databases
view Resources/PostgreSQL/c_flexmember.c @ 128:39b2f29ddf3c
integration OrthancPostgreSQL-3.1 to mainline
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 08 Feb 2019 19:55:01 +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; }