From 984461741cbbba67bd056258ca79883a4c3dbf71 Mon Sep 17 00:00:00 2001 From: Barry Perlman <barry@tokutek.com> Date: Tue, 16 Apr 2013 23:58:55 -0400 Subject: [PATCH] Added simple example of htonl git-svn-id: file:///svn/toku/tokudb@16082 c7de825b-a66e-492c-adef-691d508d4ae1 --- src/tests/htonl.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/tests/htonl.c diff --git a/src/tests/htonl.c b/src/tests/htonl.c new file mode 100644 index 0000000000..ff16476ede --- /dev/null +++ b/src/tests/htonl.c @@ -0,0 +1,15 @@ +#include "test.h" + + + +int test_main (int argc __attribute__((__unused__)), char *argv[] __attribute__((__unused__))) { + uint32_t h,n; + + parse_args(argc, argv); + + for (h = 0; h<4; h++) { + n = htonl(h); + printf("h = %d, n = %d\n", h,n); + } + return 0; +} -- 2.30.9