#include <jaz.h>
main(argc,argv)
int argc;
char **argv;
{

  TSTKHEAD whead;		/* head of stack */
  unsigned int w;
  char wstr[256];

  jzintstk(&whead);

  memset(wstr,0,12);
  for (w = 0 ; w < 12 ; w ++)
    printf("%02X ",wstr[w]);

  puts("");

  w = 0xfffe;
  jzpush(&whead,&w,2);
  jzpush(&whead,"hello Jaz.",12);
  jzpush(&whead,argv[0],12);

  jzpop(&whead,wstr,0);
  for (w = 0 ; w < 12 ; w ++)
    printf("%02X ",(char **)(wstr[w]&0xff));

  puts("");

  jzpop(&whead,wstr,0);
  for (w = 0 ; w < 12 ; w ++)
    printf("%02X ",wstr[w]&0xff);

  puts("");

  jzpop(&whead,wstr,12);	/* override size, ask for 12 bytes */
  for (w = 0 ; w < 12 ; w ++)
    printf("%02X ",wstr[w]&0xff);

  puts("");
}
