aboutsummaryrefslogtreecommitdiff
path: root/tst/sizeof.c
diff options
context:
space:
mode:
authorbeber <beber>2005-10-19 12:15:19 +0000
committerbeber <beber>2005-10-19 12:15:19 +0000
commit1edd450ae84a1e0ad369387275ff4d557ee60054 (patch)
treeac457714421743976ff4e3bc41d3e002ca47f74f /tst/sizeof.c
parentprintf just what is need (diff)
downloadespik-1edd450ae84a1e0ad369387275ff4d557ee60054.tar.xz
add another test
Diffstat (limited to '')
-rw-r--r--tst/sizeof.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/tst/sizeof.c b/tst/sizeof.c
new file mode 100644
index 0000000..35df223
--- /dev/null
+++ b/tst/sizeof.c
@@ -0,0 +1,15 @@
+#include <stdio.h>
+#include <stdlib.h>
+
+int main()
+{
+ char toto[1024];
+ char *tata;
+
+ tata = malloc (sizeof(char)*1024);
+
+ printf ("sizeof(toto) : %d\n", sizeof(toto));
+ printf ("sizeof(tata) : %d\n", sizeof(tata));
+
+ return 0;
+}