Diff for /libaitio/example/Attic/astvar.c between versions 1.1 and 1.2

version 1.1, 2011/02/10 19:44:57 version 1.2, 2011/02/10 22:01:33
Line 0 Line 1
   #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 = ioVarAst(argv[1]);
           if (!str) {
                   printf("#%d - %s\n", io_GetErrno(), io_GetError());
                   return 1;
           }
   
           printf(">>> %s\n", str);
   
           free(str);
           return 0;
   }

Removed from v.1.1  
changed lines
  Added in v.1.2


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