Mercurial > hg > orthanc-postgresql
view Resources/Platforms/c_flexmember.c @ 184:4939d00da285
better path handling
| author | Sebastien Jodogne <s.jodogne@gmail.com> |
|---|---|
| date | Thu, 14 Jun 2018 13:53:05 +0200 |
| parents | 4968c70ba17e |
| 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; }
