1 //This programme check size of datatypes
3 /* Copyright (c) 2010. The SimGrid Team.
4 * All rights reserved. */
6 /* This program is free software; you can redistribute it and/or modify it
7 * under the terms of the license (GNU LGPL) which comes with this package. */
10 #include <sys/types.h>
17 int si = sizeof(short int);
19 int li = sizeof(long int);
20 int lli = sizeof(long long int);
21 int f = sizeof(float);
22 int v = sizeof(void *);
23 int vv = sizeof(void (*)(void));
24 int t[8] = { c, si, i, li, lli, f, v, vv };
28 for (i = 1; i < 8; i++) {