home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Source Code 1992 March
/
Source_Code_CD-ROM_Walnut_Creek_March_1992.iso
/
msdos
/
c
/
jazlib.arc
/
JZPUSH.DMO
< prev
next >
Wrap
Text File
|
1986-07-18
|
750b
|
42 lines
#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("");
}