Mercurial > hg > orthanc-databases
view Resources/PostgreSQL/c_flexmember.c @ 138:5c5cd59c991f
fix unit tests if MySQL >= 5.7
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 09 May 2019 11:36:56 +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; }