# HG changeset patch # User Shinji KONO # Date 1257342726 -32400 # Node ID f1c2e11a2ef4a88748254c4e3fbd67c25b8af3ce # Parent 2f138c672969b34aab752f31c9f20700a2953ea8 add xdr_getpos diff -r 2f138c672969 -r f1c2e11a2ef4 old/tmp/test.c --- a/old/tmp/test.c Wed Nov 04 22:27:22 2009 +0900 +++ b/old/tmp/test.c Wed Nov 04 22:52:06 2009 +0900 @@ -31,6 +31,8 @@ dp[i] = d * i; xdr_double(&xdrs, &dp[i]); } + int pos = xdr_getpos(&xdrs); + printf("xdr written %d\n",pos); for (i = 0; i< 6; i++) dp[i] = 0.0;