/*
- * $Id: zoom-c.c,v 1.9 2001-11-16 09:52:39 adam Exp $
+ * $Id: zoom-c.c,v 1.10 2001-11-16 10:18:20 adam Exp $
*
* ZOOM layer for C, connections, result sets, queries.
*/
c->error = *r->condition;
}
-Z3950_record Z3950_record_dup (const Z3950_record srec)
+Z3950_record Z3950_record_dup (Z3950_record srec)
{
char *buf;
int size;
/*
- * $Id: zoomsh.c,v 1.5 2001-11-16 09:52:39 adam Exp $
+ * $Id: zoomsh.c,v 1.6 2001-11-16 10:18:20 adam Exp $
*
* ZOOM-C Shell
*/
while (1)
{
char buf[1000];
+ char *cp;
const char *bp = buf;
#if HAVE_READLINE_READLINE_H
char* line_in;
if (!fgets (buf, 999, stdin))
break;
#endif
+ if ((cp = strchr(buf, '\n')))
+ *cp = '\0';
if (!cmd_parse (c, r, options, &bp))
break;
}