Back to index

opendkim  2.6.2
Defines | Functions | Variables
t-test111.c File Reference
#include "build-config.h"
#include <sys/types.h>
#include <assert.h>
#include <string.h>
#include <stdio.h>
#include "../dkim.h"
#include "../dkim-internal.h"
#include "../util.h"

Go to the source code of this file.


#define MAXHEADER   4096
#define QP_IN   "root=40example=2E=\r\ncom\n"
#define QP_OUT   "\n"


int main (int argc, char **argv)


static char t_test111_c_id [] = "@(#)$Id: t-test111.c,v 1.3 2010/03/01 18:21:46 cm-msk Exp $"

Define Documentation

#define MAXHEADER   4096

Definition at line 29 of file t-test111.c.

#define QP_IN   "root=40example=2E=\r\ncom\n"

Definition at line 31 of file t-test111.c.

#define QP_OUT   "\n"

Definition at line 32 of file t-test111.c.

Function Documentation

int main ( int  argc,
char **  argv 

Definition at line 45 of file t-test111.c.

       int olen;
       char buf[BUFRSZ + 1];

       printf("*** quoted-printable decode\n");

       olen = dkim_qp_decode(QP_IN, buf, sizeof buf);
       assert(olen == strlen(QP_OUT));
       buf[olen] = '\0';
       assert(strcmp(QP_OUT, buf) == 0);

       return 0;

Here is the call graph for this function:

Variable Documentation

char t_test111_c_id[] = "@(#)$Id: t-test111.c,v 1.3 2010/03/01 18:21:46 cm-msk Exp $" [static]

Definition at line 9 of file t-test111.c.