views:

419

answers:

1

Should I write my own or is there a library function that already does that? I need this for a pidgin plugin, so if there is something in the pidgin/purple/gnome libraries, that would be ideal. But other sources are fine, too.

+1  A: 

You could use apreq_encode() from libapreq2. Note that your write buffer needs to be 3 * src_length + 1 big, which isn't necessarily clear from the doc snippet.

chaos
thanks, i'll try that
Kim