view src/base64/base64enc.c @ 204:5745edd5b769

removed the --disable-smtp-server configure option masqmail will now always have the possibility to listen on a port compiled in if you don't want it to listen on a port add this to your masqmail.conf: listen_addresses = "" also, if you don't start it as daemon it will not listen neither
author meillo@marmaro.de
date Fri, 16 Jul 2010 15:38:53 +0200
parents 26e34ae9a3e3
children
line wrap: on
line source

#include <glib.h>
#include <stdio.h>
#include <stdlib.h>

#include "base64.h"

int
main()
{
	gchar in[58];
	gint size;

	do {
		gchar *out;

		size = fread(in, 1, 54, stdin);
		out = base64_encode(in, size);
		fputs(out, stdout);
		putchar('\n');
		g_free(out);
	} while (size == 54);
	exit(0);
}