* Copyright (c) 1995-2002, Index Data
* See the file LICENSE for details.
*
* Copyright (c) 1995-2002, Index Data
* See the file LICENSE for details.
*
if(apdu_file && apdu_file != stderr) { /* don't close stdout*/
perror("unable to close apdu log file");
if(apdu_file && apdu_file != stderr) { /* don't close stdout*/
perror("unable to close apdu log file");
{
if(marcdump && marcdump != stderr) { /* don't close stdout*/
perror("unable to close apdu log file");
{
if(marcdump && marcdump != stderr) { /* don't close stdout*/
perror("unable to close apdu log file");
if (!strncmp(cmd[idx].cmd,text,strlen(text))) {
++idx; /* skip this entry on the next run */
return strdup(cmd[idx-1].cmd);
if (!strncmp(cmd[idx].cmd,text,strlen(text))) {
++idx; /* skip this entry on the next run */
return strdup(cmd[idx-1].cmd);
if ((res = sscanf(rl_line_buffer, "%31s %1023[^;]", word, arg)) <= 0) {
rl_attempted_completion_over = 1;
return NULL;
if ((res = sscanf(rl_line_buffer, "%31s %1023[^;]", word, arg)) <= 0) {
rl_attempted_completion_over = 1;
return NULL;