Commit 98446174 authored by Barry Perlman's avatar Barry Perlman Committed by Yoni Fogel

Added simple example of htonl

git-svn-id: file:///svn/toku/tokudb@16082 c7de825b-a66e-492c-adef-691d508d4ae1
parent 6222ec94
#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;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment