summaryrefslogtreecommitdiffstats
path: root/mbbsd/testsz.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-19 04:30:14 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-19 04:30:14 +0800
commitda6a317fcaa76d01a43f80925f8d3137e193984c (patch)
tree59722cebfe6f33c8d002bc526f36191edfd477f6 /mbbsd/testsz.c
parenta1f92612eb4f8e33612b498314c9c5ebd167a9b5 (diff)
downloadpttbbs-da6a317fcaa76d01a43f80925f8d3137e193984c.tar
pttbbs-da6a317fcaa76d01a43f80925f8d3137e193984c.tar.gz
pttbbs-da6a317fcaa76d01a43f80925f8d3137e193984c.tar.bz2
pttbbs-da6a317fcaa76d01a43f80925f8d3137e193984c.tar.lz
pttbbs-da6a317fcaa76d01a43f80925f8d3137e193984c.tar.xz
pttbbs-da6a317fcaa76d01a43f80925f8d3137e193984c.tar.zst
pttbbs-da6a317fcaa76d01a43f80925f8d3137e193984c.zip
*** PASSWD CHANGE *** PLEASE READ UPDATING FOR DEFAILT INFORMATION.
YOU NEED TO SHUTDOWN BBS TO PREPARE THIS CHANGE. - split justify to career and phone - prevent padding in structers that wil be written to disk git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4194 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/testsz.c')
-rw-r--r--mbbsd/testsz.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/mbbsd/testsz.c b/mbbsd/testsz.c
new file mode 100644
index 00000000..99d4ad22
--- /dev/null
+++ b/mbbsd/testsz.c
@@ -0,0 +1,21 @@
+#include <stdio.h>
+#include <sys/types.h>
+#include "bbs.h"
+
+int main()
+{
+ printf("sizeof(size_t) = %lu\n", sizeof(size_t));
+ printf("sizeof(off_t) = %lu\n", sizeof(off_t));
+ printf("sizeof(int) = %lu\n", sizeof(int));
+ printf("sizeof(long) = %lu\n", sizeof(long));
+ printf("sizeof(time_t) = %lu\n", sizeof(time_t));
+ printf("sizeof(time4_t) = %lu %s\n", sizeof(time4_t), sizeof(time4_t) == 4 ? "" : "ERROR!!!!!");
+ printf("sizeof(userec_t) = %lu\n", sizeof(userec_t));
+ printf("sizeof(fileheader_t) = %lu\n", sizeof(fileheader_t));
+ printf("sizeof(boardheader_t) = %lu\n", sizeof(boardheader_t));
+ printf("sizeof(chicken_t) = %lu\n", sizeof(chicken_t));
+ printf("sizeof(userinfo_t) = %lu\n", sizeof(userinfo_t));
+ printf("sizeof(msgque_t) = %lu\n", sizeof(msgque_t));
+ printf("sizeof(SHM_t) = %lu\n", sizeof(SHM_t));
+ return 0;
+}