Mercurial > hg > orthanc-databases
view Resources/PostgreSQL/c_flexmember.c @ 6:5a97c68a7a51
fix mysql msvc
author | jodogne |
---|---|
date | Thu, 05 Jul 2018 17:34:07 +0200 |
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; }