Skip to main content

Name

ec_qp_encode — Quoted-printable encode a string

Synopsis

#include "util.h"

| int **ec_qp_encode** ( | src, |   | |   | src_len, |   | |   | dest, |   | |   | dest_len); |   |

const char * <var class="pdparam">src</var>; size_t <var class="pdparam">src_len</var>; char * <var class="pdparam">dest</var>; size_t <var class="pdparam">dest_len</var>;

Description

Quoted-printable encode a string.

Parameters

src

The source string.

src_len

The length of the source string.

dest

The destination buffer that will hold the encoded result.

dest_len

The size of the destination buffer.

Return Values

0 on failure, or the length of the encoded result on success

Threading

It is legal to call this function in any thread.

Was this page helpful?