Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我应该自己写还是有一个库函数已经这样做了?我需要这个作为 pidgin 插件,所以如果 pidgin/purple/gnome 库中有东西,那将是理想的。但其他来源也很好。
您可以使用libapreq2 中的apreq_encode ()。请注意,您的写入缓冲区需要很大,从文档片段中不一定清楚。3 * src_length + 1
3 * src_length + 1