File:  [ELWIX - Embedded LightWeight unIX -] / libaitwww / example / test_base64.c
Revision 1.1.2.1: download - view: text, annotated - select for diffs - revision graph
Mon Sep 17 13:05:47 2012 UTC (11 years, 9 months ago) by misho
Branches: www1_4
added UT for base64
- base64 feature

#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <aitwww.h>


int
main(int argc, char **argv)
{
	int fd = STDOUT_FILENO;

	if (argc > 1) {
		fd = open(argv[1], O_RDONLY);
		if (fd == -1) {
			perror("open");
			return 1;
		}
	}

	if (fd > 2)
		close(fd);
	return 0;
}

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>