<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
You probably want something like Sun's old XDR library, part of its RPC
package. Google for "rpcgen" and you should find it. You won't need the
client and server code rpcgen generates, but the _xdr.c code should be
about what you want.<br>
<br>
-Steve<br>
<br>
<br>
Jure Petrovic wrote:
<blockquote cite="mid28016295.1165663816166.JavaMail.root@fep1"
type="cite">
<pre wrap=""> Hello,
Yes, I've seen this error just 3 minutes after posting to the list...
That's what happens when you act before thinking...
Thank you, guys :)
What about storing something like this?
typedef struct somestruct {
int a;
anotherstruct *b;
} somestruct;
Here i'd like to store the whole b also, as there is no use otherwise,
if you'd like to use it on another machine..
Is there any automatic mechanism that "packs" everything together?
Anyone found a good solution?
Thanks,
Jure
</pre>
<blockquote type="cite">
<pre wrap="">You might want to use strlen("obj") instead of sizeof("obj")...
/Stefan
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">mc_set(mc, "obj", sizeof("obj"), &one, sizeof(person), 0, 0);
sizeof("obj") - 1
to avoid the NULL byte?
--Iain
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
<br>
</body>
</html>