/* Copyright (c) 2001-2009 by SoftIntegration, Inc. All Rights Reserved */
#include "retstruct.h"

int main() {

  char c;
  short h=2;
  struct tag_t s, p;

  s.i = 10;
  s.s = 20;
  s.d = 30;

  p = retstruct(1, &h, 3, &s);
  printf("h = %d\n", h);
  printf("s.i in main() = %d\n", s.i);
  printf("s.s in main() = %d\n", s.s);
  printf("s.d in main() = %f\n", s.d);
  printf("p.i in main() = %d\n", p.i);
  printf("p.s in main() = %d\n", p.s);
  printf("p.d in main() = %f\n", p.d);

  return 0;
}
