=================================================================== RCS file: /home/cvs/OpenXM/doc/oxlib/test.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -p -r1.1 -r1.2 --- OpenXM/doc/oxlib/test.c 2002/02/25 07:09:01 1.1 +++ OpenXM/doc/oxlib/test.c 2002/02/25 07:14:44 1.2 @@ -1,15 +1,15 @@ -/* $OpenXM$ */ +/* $OpenXM: OpenXM/doc/oxlib/test.c,v 1.1 2002/02/25 07:09:01 noro Exp $ */ #include main() { char ibuf[BUFSIZ]; - char *s,*buf; + char *obuf; int len,len0; asir_ox_init(1); /* Use the network byte order */ len0 = BUFSIZ; - buf = (char *)malloc(len0); + obuf = (char *)malloc(len0); while ( 1 ) { fgets(ibuf,BUFSIZ,stdin); if ( !strncmp(ibuf,"bye",3) ) @@ -18,10 +18,10 @@ main() { len = asir_ox_peek_cmo_string_length(); if ( len > len0 ) { len0 = len; - buf = (char *)realloc(buf,len0); + obuf = (char *)realloc(obuf,len0); } - asir_ox_pop_string(buf,len0); - printf("%s\n",buf); + asir_ox_pop_string(obuf,len0); + printf("%s\n",obuf); } }