#include<chshell.h>

int main() {
  chinfo_t info;

  if(chinfo(&info)==-1)
     printf("Error: chinfo() error\n");
  printf("info.edition  = %s\n", info.edition);
  printf("info.releasedate = %s\n", info.releasedate);
  printf("info.version  = %s\n", info.version);
  printf("info.vermajor = %d\n", info.vermajor);
  printf("info.verminor = %d\n", info.verminor);
  printf("info.vermicro = %d\n", info.vermicro);
  printf("info.verbuild = %d\n", info.verbuild);
  printf("Ch %s Edition v%d.%d.%d.%d %s released by %s\n", info.edition,
         info.vermajor, info.verminor, info.vermicro, info.verbuild,
         info.version, info.releasedate);
}
       
