Sujet : Re: Which newsgroup for json parsing?
De : anton.txt (at) *nospam* g{oogle}mail.com (Anton Shepelev)
Groupes : comp.lang.cDate : 08. May 2024, 17:53:07
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20240508195307.e0c52107b4fe3866ea647072@g{oogle}mail.com>
References : 1 2
User-Agent : Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
Malcolm McLean:
But here's the prototype for the function
>
GObject*
json_gobject_from_data (
GType gtype,
const gchar* data,
gssize length,
GError** error
)
>
Obviously, this creates a Gobject* that you query, from
text that you pass in (he data argument). For some reason
the string is not nul-terminated and so you pass in the
length
I think it is because the function is meant to be universal,
and usable not only with strings but also with buffers.
-- () ascii ribbon campaign -- against html e-mail/\ www.asciiribbon.org -- against proprietary attachments