File:  [ELWIX - Embedded LightWeight unIX -] / libaitio / example / test_exec.c
Revision 1.1.2.2: download - view: text, annotated - select for diffs - revision graph
Thu Dec 5 13:22:10 2013 UTC (10 years, 7 months ago) by misho
Branches: io6_7
fix

#include <stdio.h>
#include <aitio.h>


int
main(int argc, char **argv)
{
	prog_t *p;

	if (argc < 2)
		return 1;

	p = io_progInit(argv[1], 3, 10);
	if (!p) {
		ELIBERR(io);
		return 2;
	} else {
		printf("wait for keystroke %p ", p);
		getchar();
	}

	io_progDestroy(&p);
	return 0;
}

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