Mercurial > hg > orthanc-postgresql
view Resources/Platforms/c_flexmember.c @ 163:43d5a4e03e8d readonly-mode
added Readonly mode to try to improve transactions isolation
author | amazy |
---|---|
date | Tue, 13 Mar 2018 11:26:46 +0100 |
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; }