Robert Parker wrote:
>         fputs(shortprompt, stdout);
>         fflush(stdin);

Uhm...  fflush'ing stdin?  That doesn't make sense.  Obviously you
meant to flush stdout.

        fputs(shortprompt, stdout);
        fflush(stdout);

That is likely the specific problem.  Unfortunately I have no time for
comments about the rest of the code.

Bob

Reply via email to