=================================================================== RCS file: /home/cvs/OpenXM/doc/oxlib/test.c,v retrieving revision 1.2 retrieving revision 1.5 diff -u -p -r1.2 -r1.5 --- OpenXM/doc/oxlib/test.c 2002/02/25 07:14:44 1.2 +++ OpenXM/doc/oxlib/test.c 2018/03/28 05:09:38 1.5 @@ -1,5 +1,6 @@ -/* $OpenXM: OpenXM/doc/oxlib/test.c,v 1.1 2002/02/25 07:09:01 noro Exp $ */ -#include +/* $OpenXM: OpenXM/doc/oxlib/test.c,v 1.4 2003/03/08 07:49:59 takayama Exp $ */ +#include +#include "hhh.h" main() { char ibuf[BUFSIZ]; @@ -11,6 +12,7 @@ main() { len0 = BUFSIZ; obuf = (char *)malloc(len0); while ( 1 ) { + printf("Input> "); fgets(ibuf,BUFSIZ,stdin); if ( !strncmp(ibuf,"bye",3) ) exit(0); @@ -21,7 +23,7 @@ main() { obuf = (char *)realloc(obuf,len0); } asir_ox_pop_string(obuf,len0); - printf("%s\n",obuf); + printf("Output> %s\n",obuf); } }