summaryrefslogtreecommitdiff
path: root/sizes.c
diff options
context:
space:
mode:
authorBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-03-17 13:53:43 +0100
committerBenoit Giannangeli <giann@users.noreply.github.com>2017-03-20 07:49:26 +0100
commit1d8e000f00cf6c30ec5573f16bb980b7ae753058 (patch)
treef580a755ae8fc725c55e860c7d8d95a2f970121c /sizes.c
parent0d8de3dad35216726d6f2e0b5fe333b2b7aa6d10 (diff)
downloadfengari-1d8e000f00cf6c30ec5573f16bb980b7ae753058.tar.gz
fengari-1d8e000f00cf6c30ec5573f16bb980b7ae753058.tar.bz2
fengari-1d8e000f00cf6c30ec5573f16bb980b7ae753058.zip
string.pack
Diffstat (limited to 'sizes.c')
-rw-r--r--sizes.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sizes.c b/sizes.c
new file mode 100644
index 0000000..647c169
--- /dev/null
+++ b/sizes.c
@@ -0,0 +1,9 @@
+#include <stdio.h>
+
+int main(void) {
+
+ printf("sizeof(char): %lu\nsizeof(short): %lu\nsizeof(long): %lu\nsizeof(size_t): %lu\nsizeof(float): %lu\nsizeof(double): %lu\nsizeof(int): %lu\n",
+ sizeof(char), sizeof(short), sizeof(long), sizeof(size_t), sizeof(float), sizeof(double), sizeof(int));
+
+ return 0;
+} \ No newline at end of file