From 1edd450ae84a1e0ad369387275ff4d557ee60054 Mon Sep 17 00:00:00 2001 From: beber Date: Wed, 19 Oct 2005 12:15:19 +0000 Subject: add another test --- tst/sizeof.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tst/sizeof.c (limited to 'tst') 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 +#include + +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; +} -- cgit v1.2.3