File:
[ELWIX - Embedded LightWeight unIX -] /
libaitio /
example /
Attic /
astvar.c
Revision
1.3:
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Dec 13 02:23:07 2011 UTC (13 years, 1 month ago) by
misho
Branches:
MAIN
CVS tags:
io4_0,
io3_9,
io3_8,
io3_7,
io3_6,
io3_5,
io3_4,
io3_3,
io3_2,
io3_1,
io2_8,
io2_7,
io2_6,
io2_5,
io2_4,
io2_3,
IO3_9,
IO3_8,
IO3_7,
IO3_6,
IO3_5,
IO3_4,
IO3_3,
IO3_2,
IO3_1,
IO3_0,
IO2_7,
IO2_6,
IO2_5,
IO2_4,
IO2_3,
IO2_2,
HEAD
Release version 2.2
#include <stdio.h>
#include <aitio.h>
int
main(int argc, char **argv)
{
char *str;
if (argc < 2) {
printf("Syntax: %s <var (like {99999[:9:9]})>\n", argv[0]);
return 1;
}
str = ioStrAst(argv[1]);
if (!str) {
printf("#%d - %s\n", io_GetErrno(), io_GetError());
return 1;
}
printf(">>> %s\n", str);
free(str);
return 0;
}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>