libcmime  
A lightweight C mime library
Functions
cmime_qp.h File Reference

quoted-printable functions More...

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
Include dependency graph for cmime_qp.h:

Go to the source code of this file.

Functions

char * cmime_qp_decode (char *line_in, int mode, char esc_char)
 decode string from quoted-printable More...
 
char * cmime_qp_decode_text (char *line_in)
 helper function to decode from quoted-printable More...
 
char * cmime_qp_decode_iso (char *line_in)
 helper function to decode from quoted-printable with ISO More...
 
char * cmime_qp_decode_multipart (char *line_in)
 helper function to decode multipart from quoted-printable More...
 
char * cmime_qp_encode (char *line_in, char *lt)
 function to encode string to quoted-printable More...
 
char * cmime_qp_rm_charenc (char *line_in)
 function to remove charset encoding from string More...
 

Detailed Description

quoted-printable functions

Function Documentation

char* cmime_qp_decode ( char *  line_in,
int  mode,
char  esc_char 
)

decode string from quoted-printable

Parameters
line_inString to decode
modeDECODE_QP_MODE_DEFAULT=0 DECODE_QP_MODE_ISO=1
esc_char= or %
Returns
newly allocated char pointer with decoded string
char* cmime_qp_decode_iso ( char *  line_in)

helper function to decode from quoted-printable with ISO

Parameters
line_inString to decode
Returns
newly allocated char pointer with decoded string
char* cmime_qp_decode_multipart ( char *  line_in)

helper function to decode multipart from quoted-printable

Parameters
line_inString to decode
Returns
newly allocated char pointer with decoded string
char* cmime_qp_decode_text ( char *  line_in)

helper function to decode from quoted-printable

HELPERS for Decoding, so just passing the char pointer is necessary

Parameters
line_inString to decode
Returns
newly allocated char pointer with decoded string
char* cmime_qp_encode ( char *  line_in,
char *  lt 
)

function to encode string to quoted-printable

Parameters
line_inString to encode
ltline terminator (NULL triggers lt to be CRLF)
Returns
newly allocated char pointer with encoded string
char* cmime_qp_rm_charenc ( char *  line_in)

function to remove charset encoding from string

Parameters
line_inString to clean
Returns
newly allocated char pointer with clean string