diff options
author | beber <beber> | 2005-10-19 12:15:19 +0000 |
---|---|---|
committer | beber <beber> | 2005-10-19 12:15:19 +0000 |
commit | 1edd450ae84a1e0ad369387275ff4d557ee60054 (patch) | |
tree | ac457714421743976ff4e3bc41d3e002ca47f74f /tst | |
parent | printf just what is need (diff) | |
download | espik-1edd450ae84a1e0ad369387275ff4d557ee60054.tar.xz |
add another test
Diffstat (limited to 'tst')
-rw-r--r-- | tst/sizeof.c | 15 |
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; +} |